delete existing import harder

This commit is contained in:
Glandos
2018-02-20 22:24:09 +01:00
parent 2b3fcbaac3
commit dda9fbc592

View File

@@ -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: