##// END OF EJS Templates
Only ignore existing target for symlink if it is already a symlink
Thomas Kluyver -
Show More
@@ -381,8 +381,8 class install_lib_symlink(Command):
381 try:
381 try:
382 os.symlink(pkg, dest)
382 os.symlink(pkg, dest)
383 except OSError as e:
383 except OSError as e:
384 if e.errno == errno.EEXIST:
384 if e.errno == errno.EEXIST and os.path.islink(dest):
385 print('ALREADY EXISTS')
385 print('Symlink already exists')
386 else:
386 else:
387 raise
387 raise
388
388
General Comments 0
You need to be logged in to leave comments. Login now