diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -249,7 +249,7 @@ class _LinkFile(object): | |||
249 | if not os.path.islink(absDest) or (os.readlink(absDest) != relSrc): | 249 | if not os.path.islink(absDest) or (os.readlink(absDest) != relSrc): |
250 | try: | 250 | try: |
251 | # remove existing file first, since it might be read-only | 251 | # remove existing file first, since it might be read-only |
252 | if os.path.exists(absDest): | 252 | if os.path.lexists(absDest): |
253 | os.remove(absDest) | 253 | os.remove(absDest) |
254 | else: | 254 | else: |
255 | dest_dir = os.path.dirname(absDest) | 255 | dest_dir = os.path.dirname(absDest) |