Hi, what is the best way to force Muster to re-import modules in the global template.
For example, I imported my module to the global template to use some of its functions in the template and everything works as suspected. After some time, I’ve changed something in the module, hopefully, to improve it :).
But the module has been already imported and now it will not catch the changes that I did. So, I need to ask Muster to re-import this module.
The hardcore solution is to accomplish the soft-restart of the dispatcher, but it’s quite disturbing other users.
Tricky way, that I’ve found, is to change the module’s name and change it in the global template then: update –> confirm changes.
But not sensitive changes like creation and deleting the new line, despite that fact that they will activate route: update –> confirm-changes won’t re-import the modules…
Thank works perfect! Just one thing for the python 3.3 you have to import reload:
from imp import reload
reload(myModule)
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
We use cookies to ensure that we give you the best experience on our website Cookies are also used to send anonymous browsing data to Google Analytics. We give you the option to Refuse our cookies.