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:
commit
b8edb3ce0f
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue