How do I unload (reload) a Python module?
- by Mark Harrison
I have a long-running python server and would like to be able to upgrade a service without restarting the server. What's the best way do do this?
if foo.py has changed:
unimport foo <-- how do I do this?
import foo
myfoo=foo.Foo()