Skip to content

Commit

Permalink
fixes symbolic link on py3 and windows
Browse files Browse the repository at this point in the history
during setup of spacy using command
python -m spacy link en_core_web_sm en
closes #2948
  • Loading branch information
cicorias committed Nov 20, 2018
1 parent 02fc73c commit f4904d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacy/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def getattr_(obj, name, *default):


def symlink_to(orig, dest):
if is_python2 and is_windows:
if (is_python2 or is_python3) and is_windows:
import subprocess
subprocess.call(['mklink', '/d', path2str(orig), path2str(dest)], shell=True)
else:
Expand Down

0 comments on commit f4904d2

Please sign in to comment.