Reloading python modules in a package
- July 27th, 2013
- 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')