Fix symlink function to check for Windows

This commit is contained in:
ines 2017-04-15 12:17:27 +02:00
parent 35fb4febe2
commit fefe6684cd
1 changed files with 3 additions and 4 deletions

View File

@ -39,12 +39,11 @@ elif is_python3:
def symlink_to(orig, dest): def symlink_to(orig, dest):
if is_python3: if is_python2 and is_windows:
orig.symlink_to(dest)
elif is_python2:
import subprocess import subprocess
subprocess.call(['mklink', '/d', unicode(orig), unicode(dest)], shell=True) subprocess.call(['mklink', '/d', unicode(orig), unicode(dest)], shell=True)
else:
orig.symlink_to(dest)
def is_config(python2=None, python3=None, windows=None, linux=None, osx=None): def is_config(python2=None, python3=None, windows=None, linux=None, osx=None):