Permalink
Browse files

working on it...

  • Loading branch information...
mortenvp committed Dec 20, 2017
1 parent c55c278 commit 1e1c939bedf0cb4a2420c52f52e0c4d8a2e8adae
Showing with 10 additions and 3 deletions.
  1. +10 −3 src/wurf/symlink.py
View
@@ -26,9 +26,16 @@ def _py2_win32_create_symlink(from_path, to_path):
# mklink is used to create an NTFS junction, i.e. symlink
# https://stackoverflow.com/a/22225651/1717320
cmd = 'mklink /J "{}" "{}"'.format(
to_path.replace('/', '\\'), from_path.replace('/', '\\'))
subprocess.call(cmd, shell=True)
cmd = ['mklink']
if os.path.isdir(from_path):
cmd += ['/J']
cmd += ['"{}"'.format(to_path.replace('/', '\\')),
'"{}"'.format(from_path.replace('/', '\\'))]
subprocess.call(' '.join(cmd), shell=True)
def _py2_unix_create_symlink(from_path, to_path):

0 comments on commit 1e1c939

Please sign in to comment.