Debugging tainted namespace on profile modules.

This commit is contained in:
Anton Hvornum 2021-03-21 14:56:26 +01:00
parent ec9059c039
commit c99abb1a7b
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 3 additions and 0 deletions

View File

@ -134,6 +134,9 @@ class Script():
sys.modules[namespace] = imported
print(f"Imported {self} into sys.modules with namespace {namespace}.")
if '.py' not in namespace:
raise KeyError("Debugging")
return self
def execute(self):