This commit is contained in:
ines 2017-08-19 22:32:07 +02:00
parent b8e1603cc4
commit 2d126a00ae
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ def import_file(name, loc):
if is_python2:
return imp.load_source(name, loc)
else:
spec = importlib.util.spec_from_file_location(name, str(init_file))
spec = importlib.util.spec_from_file_location(name, str(loc))
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
return module