Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
build: fix wscript on solaris
Browse files Browse the repository at this point in the history
os.path.exists() in python 2.5.2 returns false for symlinks.
  • Loading branch information
bnoordhuis committed Oct 21, 2011
1 parent 69b73f9 commit 0ae98df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wscript
Expand Up @@ -998,9 +998,9 @@ def shutdown():
if os.path.exists('out/Debug/node.exe'):
os.system('cp out/Debug/node.exe node_g.exe')
else:
if os.path.exists('out/Release/node') and not os.path.exists('node'):
if os.path.exists('out/Release/node') and not os.path.islink('node'):
os.symlink('out/Release/node', 'node')
if os.path.exists('out/Debug/node') and not os.path.exists('node_g'):
if os.path.exists('out/Debug/node') and not os.path.islink('node_g'):
os.symlink('out/Debug/node', 'node_g')
else:
if sys.platform.startswith("win32"):
Expand Down

0 comments on commit 0ae98df

Please sign in to comment.