From b8f8d5d8bfa049341a47fb489f20317c3b6acc56 Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 19 Mar 2017 11:57:13 +0100 Subject: [PATCH] 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) --- spacy/cli/link.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/cli/link.py b/spacy/cli/link.py index 6df78b81d..0f28187b3 100644 --- a/spacy/cli/link.py +++ b/spacy/cli/link.py @@ -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),