Show More
@@ -381,7 +381,8 b' class install_lib_symlink(Command):' | |||
|
381 | 381 | try: |
|
382 | 382 | os.symlink(pkg, dest) |
|
383 | 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 | 386 | print('Symlink already exists') |
|
386 | 387 | else: |
|
387 | 388 | raise |
General Comments 0
You need to be logged in to leave comments.
Login now