Omaha #4120 One additional change to the PythonOverriderInterface to reload all the modules.

Former-commit-id: b34f58198f66e2c7365e83984d22d3fe144ad3b4
This commit is contained in:
Robert Blum 2015-02-19 11:00:20 -06:00
parent b038dac2b5
commit d3e54accea

View file

@ -35,6 +35,8 @@
# ------------ ---------- ----------- --------------------------
# 01/14/2014 #2766 bkowal Initial Creation.
# 02/09/2015 #4120 reblum Inherit straight from MasterInterface.
# 02/19/2015 #4120 reblum Reload all modules on reload to ensure
# that all references to old modules are removed.
#
#
#
@ -72,6 +74,7 @@ class PythonOverriderInterface(MasterInterface.MasterInterface):
def reloadModule(self, moduleName):
if sys.modules.has_key(moduleName):
self.reloadModules()
self.clearModuleAttributes(moduleName)
self._importModule(moduleName)