Reloading python modules in a package
- July 27th, 2013
- Posted in Uncategorized
- Write comment
def reloadModules(moduleStr): import sys for key, value in sys.modules.items(): if moduleStr in key: if value: print 'reloading:', key del(sys.modules[key]) reloadModules('blahblah')