I’m currently working on a publish pipeline, using STK to do checks and publish operations with my own modules.
env hook tk-multi-publish2 loads a module A, which loads a module B, which does some stuff.
My problem is that SGTK does not seem to reload module B if I don’t completly close and restart maya. Even ‘Reload engine and apps’ in Maya Shotgun’s Work Area Info does not seem to do the trick.
I am using a decentralised setup (descriptor pointing to a folder on our sever)
module B is outside config folder, in a cross project directory
all init.py are setuped to reload submodules:
try: # First time the module imports, loaded is undefined and will trigger the exception. # loaded is then defined in the exception block # when reloaded, loaded is defined as true, so reload your submodules: if loaded: reload(subModule) except: loaded = True
Do you know any way to force python / sgtk to reload all submodules without exiting maya? Right now, everytime I make a syntaxError, it takes me several minutes juste to relaunch maya…