unloading a sub module?
Posted: Sat Jan 17, 2015 12:23 pm
Hello, I'm currently working on a project with multiple submodules and I'm running into a problem.
Let's say I have it set up like this:
plugins/test/test.py
plugins/test/modules/module.py
And I'm importing module.py in test.py like this:
from test.modules import module
Now when I unload the main script, the unload() function in module.py won't be executed.
Is there any way I can do stuff in module.py when unloading test.py?
Let's say I have it set up like this:
plugins/test/test.py
plugins/test/modules/module.py
And I'm importing module.py in test.py like this:
from test.modules import module
Now when I unload the main script, the unload() function in module.py won't be executed.
Is there any way I can do stuff in module.py when unloading test.py?