mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Make sure model_path is a Posix path
Otherwise, formatting the success message with model_path.as_posix() fails when using a local path for linking (linking still works, but the error message is confusing)
This commit is contained in:
parent
fe0ff00fe1
commit
b8f8d5d8bf
|
@ -28,6 +28,7 @@ def link_package(package_name, link_name, force=False):
|
|||
|
||||
|
||||
def symlink(model_path, link_name, force):
|
||||
model_path = Path(model_path)
|
||||
if not Path(model_path).exists():
|
||||
util.sys_exit(
|
||||
"The data should be located in {p}".format(p=model_path),
|
||||
|
|
Loading…
Reference in New Issue
Block a user