This PR adds a new script to fix some Python scripting annoyances in RMS, as well as gather useful information about said scripts. In particular it allows one to fix all non-.py file extensions and gather a list of scripts that are not currently used in any RMS workflow. It achieves this by parsing the pythoncomp/.master file, choosing the instance_name as the source of truth (the name displayed in RMS), and renaming the linked file on disk to this. It takes some precautions to avoid overwrites and includes the ability to take a backup.
A current limitation is that it ignores subdirectories in the pythoncomp directory.
This PR is being made at the suggestion of @jcrivenaes who has already done some testing with it. In includes fixes to feedback received from Jan already.
This PR adds a new script to fix some Python scripting annoyances in RMS, as well as gather useful information about said scripts. In particular it allows one to fix all non-
.py
file extensions and gather a list of scripts that are not currently used in any RMS workflow. It achieves this by parsing thepythoncomp/.master
file, choosing theinstance_name
as the source of truth (the name displayed in RMS), and renaming the linked file on disk to this. It takes some precautions to avoid overwrites and includes the ability to take a backup.A current limitation is that it ignores subdirectories in the
pythoncomp
directory.This PR is being made at the suggestion of @jcrivenaes who has already done some testing with it. In includes fixes to feedback received from Jan already.