Debugging tainted namespace on profile modules.
This commit is contained in:
parent
1998e0378c
commit
e1e1a916fc
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue