Inserting static code snippets into python action scripts
Posted: Thu Mar 28, 2019 8:41 am
Hi Folks,
Not sure this post is in the right location....
I have a large number of python action scripts. Each script has a static header (reading indigo variables into the script) and a static footer (writing indigo variables back out). Instead of duplicating these blocks multiple times, I'd like to save them to a file, and then import them into the python action scripts as needed. Questions:
1. How can I import these snippets inside a python script, and
2. what directory would the header/footer files have to reside in? (I'm assuming there is no repository inside the Indigo UI for that).
thanks in advance for any help!
-russg
Not sure this post is in the right location....
I have a large number of python action scripts. Each script has a static header (reading indigo variables into the script) and a static footer (writing indigo variables back out). Instead of duplicating these blocks multiple times, I'd like to save them to a file, and then import them into the python action scripts as needed. Questions:
1. How can I import these snippets inside a python script, and
2. what directory would the header/footer files have to reside in? (I'm assuming there is no repository inside the Indigo UI for that).
thanks in advance for any help!
-russg