profile_manager.handlers.scripts module

profile_manager.handlers.scripts.import_scripts(source_profile_path: Path, target_profile_path: Path)[source]

Imports Processing scripts from source to target profile.

Note: Existing scripts with identical filenames will be overwritten!

Scripts are stored in the processing/scripts/ subdirectory of a profile, e.g.:

...
processing/scripts/my_great_processing_script.py
processing/scripts/snakes.py
...
Parameters:
  • source_profile_path – Path of profile directory to import from

  • target_profile_path – Path of profile directory to import to