mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 05:47:59 +01:00
Merge pull request #231 from JoeGlancy/patch-2
Updated setup.py (workaround for issue 229)
This commit is contained in:
commit
68a96f13b8
1 changed files with 5 additions and 1 deletions
6
setup.py
6
setup.py
|
@ -922,7 +922,11 @@ class Setup():
|
||||||
if target.startswith('./') or target.startswith('../'):
|
if target.startswith('./') or target.startswith('../'):
|
||||||
os.symlink(target, dest)
|
os.symlink(target, dest)
|
||||||
elif '/' not in target:
|
elif '/' not in target:
|
||||||
os.symlink('./' + target, dest)
|
try:
|
||||||
|
os.symlink('./' + target, dest)
|
||||||
|
except OSError as e:
|
||||||
|
if e.errno != 17:
|
||||||
|
raise
|
||||||
else:
|
else:
|
||||||
targets = target.split('/')
|
targets = target.split('/')
|
||||||
dests = dest.split('/')
|
dests = dest.split('/')
|
||||||
|
|
Loading…
Reference in a new issue