Search found 1 match
- Sun May 20, 2018 7:12 pm
- Forum: General Discussion and Questions
- Topic: Re-import module?
- Replies: 35
- Views: 40346
Re: Re-import module?
Thanks for the pointers! I have set up the following functions: [code] def unload(mod): #removes module from the system mod_name = mod.__name__ import sys if mod_name in sys.modules: del sys.modules[mod_name] def run(mod): #executes a module (python file without .py) #import would only run it once u...