Merge "Omaha #4120 One additional change to the PythonOverriderInterface to reload all the modules." into omaha_15.1.1

Former-commit-id: 40496a3fccb0f7a5d583272354d2bb2aa86cf353
This commit is contained in:
Nate Jensen 2015-02-19 11:14:31 -06:00 committed by Gerrit Code Review
commit b8edb3ce0f

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)