delete existing import harder
This commit is contained in:
@@ -21,6 +21,10 @@ class ModuleMasker:
|
||||
# If the module have been previously imported,
|
||||
# We should force a reload on next import call.
|
||||
for m in modules:
|
||||
try:
|
||||
del globals()[m]
|
||||
except KeyError:
|
||||
pass
|
||||
try:
|
||||
del sys.modules[m]
|
||||
except KeyError:
|
||||
|
||||
Reference in New Issue
Block a user