Skip to content

Commit

Permalink
Issue explosion#934 symlink should not convert paths as_posix under w…
Browse files Browse the repository at this point in the history
…indows.
  • Loading branch information
jreeter committed Mar 31, 2017
1 parent 2947182 commit 564daf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacy/cli/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 564daf6

Please sign in to comment.