Hi all,
I am developing a plugin and trying to develop it in a modular way…
… so I have a top level python plugin file e.g MyPlugin.py in my Packages/MyPlugin/ folder.
MyPlugin.py imports python modules from a sub folder e.g. Packages/MyPlugin/mypymodule
After editing and saving MyPlugin.py the plugin is reloaded and I am able to test it straight away in Sublime Text 2.
My python modules are imported correctly and all works fine at first glance.
However, after editing and saving one of my module.py files located in the Packages/MyPlugin/mypymodule, the changes are not picked up in the same way as a change to MyPlugin.py. Even if I then make some change to MyPlugin.py and save it - the changes made to the modules are still not picked up, even though Sublime Text does reload MyPlugin.py.
So far the only workaround I have is to close Sublime Text and re-open it, which will soon become a complete PITA.
I had a quick search but didn’t find anything useful on the subject, but I feel I can’t be the only person to have run into this problem.
If anybody has a tip or better workaround, I’d be Grateful to know about it.
Is there some way to force a recompile / reload of the modules ?
Thanks.