Where to put Python functions/classes on disk
Posted: Mon Oct 14, 2019 2:33 pm
I'm just now (I know, late) switching my many AppleScript files into Python. I've got a small script as an experiment, but I can't seem to add it as part of a function library as I could with AppleScript.
In AppleScript, I would create the AppleScript file, and place it in the Attachments folder.
In Python, I've been told to do the same, but use the directory "/Library/Python/2.7/site-packages" instead. The reload your libraries & attachments from the Indigo Plugins menu.
Now when I code a python script in Indigo and reference this python function, it doesn't find the function and errors out. How do I make sure this function is available to all my python code?
Thanks,
In AppleScript, I would create the AppleScript file, and place it in the Attachments folder.
In Python, I've been told to do the same, but use the directory "/Library/Python/2.7/site-packages" instead. The reload your libraries & attachments from the Indigo Plugins menu.
Now when I code a python script in Indigo and reference this python function, it doesn't find the function and errors out. How do I make sure this function is available to all my python code?
Thanks,