From 564daf6dec204fe2f842a5aae459ad08fbb4d8b3 Mon Sep 17 00:00:00 2001 From: Joshua Reeter Date: Thu, 30 Mar 2017 23:47:45 -0500 Subject: [PATCH] Issue #934 symlink should not convert paths as_posix under windows. --- spacy/cli/link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/link.py b/spacy/cli/link.py index 3777fd85f..82d1d9a33 100644 --- a/spacy/cli/link.py +++ b/spacy/cli/link.py @@ -46,7 +46,7 @@ def symlink(model_path, link_name, force): # Add workaround for Python 2 on Windows (see issue #909) if util.is_python2() and util.is_windows(): import subprocess - command = ['mklink', '/d', link_path.as_posix(), model_path.as_posix()] + command = ['mklink', '/d', link_path, model_path] subprocess.call(command, shell=True) else: link_path.symlink_to(model_path)