]> khamidou — GitHub mirrors - electron.git/commitdiff
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 2c24835eb5ba57d60a4e8a3f205d98df5b1a33c6..54108e41d7c9642237220c244b3693dbc8833641 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():