From 0ae98dfc664b3754eee1a46e46576391c5954459 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 21 Oct 2011 12:46:52 -0700 Subject: [PATCH] build: fix wscript on solaris os.path.exists() in python 2.5.2 returns false for symlinks. --- wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index 438f481e4f..30d4501cf2 100644 --- a/wscript +++ b/wscript @@ -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"):