mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix typo
This commit is contained in:
parent
b8e1603cc4
commit
2d126a00ae
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user