In MyCommand_cmd.py I import something from utils.py.
If I make changes in utils.py I need to quit Rhino and open it again for the changes to take effect. This is quite disturbing for any development flow. Am I missing something? Is there any way I can reset the Python environment in some way, without quitting the application?
If a module imports objects from another module using from … import …, calling reload() for the other module does not redefine the objects imported from it — one way around this is to re-execute the from statement, another is to use import and qualified names (module.name) instead.
I ended up refactoring quite a lot of code to fully qualified imports, and then reloading the imported modules during development at the beginning of the commands.