Wrong variable passed to spec_from_file_location()
This commit is contained in:
parent
73ca83f2c9
commit
9921276ea5
|
|
@ -115,8 +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)
|
||||
spec = importlib.util.spec_from_file_location(self.namespace, self.path)
|
||||
imported = importlib.util.module_from_spec(spec)
|
||||
sys.modules[self.namespace] = imported
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue