Show More
@@ -381,7 +381,8 b' 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 and os.path.islink(dest) |
|
384 | if e.errno == errno.EEXIST and os.path.islink(dest) \ | |
|
385 | and os.path.realpath(dest) == pkg: | |||
385 | print('Symlink already exists') |
|
386 | print('Symlink already exists') | |
386 | else: |
|
387 | else: | |
387 | raise |
|
388 | raise |
General Comments 0
You need to be logged in to leave comments.
Login now