Fix calling apm under cygwin.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 6 Aug 2013 12:14:28 +0000 (20:14 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 6 Aug 2013 12:14:28 +0000 (20:14 +0800)
script/bootstrap.py

index 2c24835..54108e4 100755 (executable)
@@ -76,7 +76,7 @@ def update_node_modules():
 def update_node_modules_for_dir(dirname):
   with scoped_cwd(dirname):
     apm = os.path.join(SOURCE_ROOT, 'vendor', 'apm', 'bin', 'apm')
-    subprocess.check_call(['node', apm, 'install'])
+    subprocess.check_call(['node', os.path.relpath(apm), 'install'])
 
 
 def update_win32_python():