profile_manager.handlers.python_expressions module

profile_manager.handlers.python_expressions.import_python_expressions(source_profile_path: Path, target_profile_path: Path)[source]

Imports Python expressions from source to target profile.

Note: Existing modules with identical filenames will be overwritten!

Expressions are stored in modules (.py files) python/expressions/ subdirectory of a profile, e.g.:

...
python/expressions/__init__.py
python/expressions/default.py
python/expressions/foo.py
...
Parameters:
  • source_profile_path – Path of profile directory to import from

  • target_profile_path – Path of profile directory to import to