Debugging tainted namespace on profile modules.

This commit is contained in:
Anton Hvornum 2021-03-21 14:32:36 +01:00
parent 1998e0378c
commit e1e1a916fc
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ class Script():
if namespace:
self.namespace = namespace
#if '.py' in self.namespace:
# raise KeyError("Debugging")
if '.py' in self.namespace:
raise KeyError("Debugging")
self.spec = importlib.util.spec_from_file_location(self.namespace, self.path)
imported = importlib.util.module_from_spec(self.spec)