- Posted on
Wed Nov 07, 2018 12:59 am
-
gabbas
offline
-
- Posts: 39
- Joined: Jun 22, 2008
Does "Reload Libraries and Attachments" no longer reload modules that were imported from embedded scripts? When I have some non-trivial Indigo Python to write (but it's not a plugin) I usually put it in a module that's symlinked into /Library/Python/2.7/site-packages, and call it from an embedded script so my embedded script is short. Like, one of my trigger actions will often just be something like "import mymodule / mymodule.myfunction()". That way I can use my own preferred text editor, version-control my code in git, and so on. This used to work fine because invoking the "Plugins -> Reload Libraries and Attachments" menu item used to reload all such modules, apparently by restarting the Python process on the server. But Indigo 7.2 doesn't appear to reload my module any more... the only workaround I've found now is to completely shut down the Indigo server and start it up again. Restarting the server takes a lot longer and feels more disruptive; is there a better way?