Debugging

This commit is contained in:
Anton Hvornum 2020-12-06 11:25:33 +01:00
parent d54bd4462b
commit 73ca83f2c9
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ class Script():
if namespace:
self.namespace = namespace
print('Namespace:', namespace, self.path, self.namespace)
spec = importlib.util.spec_from_file_location(namespace, self.path)
imported = importlib.util.module_from_spec(spec)
sys.modules[self.namespace] = imported