Browse Source

build: fix wscript on solaris

os.path.exists() in python 2.5.2 returns false for symlinks.
v0.7.4-release
Ben Noordhuis 14 years ago
parent
commit
0ae98dfc66
  1. 4
      wscript

4
wscript

@ -998,9 +998,9 @@ def shutdown():
if os.path.exists('out/Debug/node.exe'): if os.path.exists('out/Debug/node.exe'):
os.system('cp out/Debug/node.exe node_g.exe') os.system('cp out/Debug/node.exe node_g.exe')
else: 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') 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') os.symlink('out/Debug/node', 'node_g')
else: else:
if sys.platform.startswith("win32"): if sys.platform.startswith("win32"):

Loading…
Cancel
Save