- Posted on
Tue May 21, 2019 11:27 pm
-
Turribeach
offline
-
- Posts: 429
- Joined: Feb 06, 2015
- Location: London, UK
I presume it’s then not even possible to know which objects have Python code embedded in them either right? Over the years I have written several scripts and Python embedded code. Every now and then I find myself trying to find out where is that piece of code I wrote to reuse it or even revisit it but I can’t remember where it is or find it. So I am thinking to do the following (please tell me if it makes sense or I am going crazy):
1) review every object I have and remove any Python embedded code from the object itself and place it on physical files.
2) to be able to have traceability of where each piece of code gets used I will create top level folders for each object type (ie trigger/schedule/action group) and folders for each object name. That way I can have a central repository of code and also do searches across all my code, etc.
For shared scripts I was thinking to follow the above as well but instead of having an actual script in the object folder I could have a symlink to a generic script in a folder called “shared scripts”. That should also allow me to do a search to know where is the shared script being calle from.
Have I gone nuts?