Global template

Viewing 3 posts - 1 through 3 (of 3 total)
  • 16th April 2019 at 2:23 pm #17399

    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…

    16th April 2019 at 3:09 pm #17400


    basically you can issue a module reimport command from the Console Python Console, with the Dispatcher set as the execution context!

    17th April 2019 at 2:08 pm #17404

    Thank works perfect! Just one thing for the python 3.3 you have to import reload:

    from imp import reload

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.