From: Cheng Zhao Date: Fri, 28 Mar 2014 09:30:15 +0000 (+0000) Subject: Fix calling apm for apm 0.37.0. X-Git-Tag: v0.11.5~8 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=9d0a11580f9965ce470cf2eda3c4ba1503eba729;p=electron.git Fix calling apm for apm 0.37.0. --- diff --git a/script/bootstrap.py b/script/bootstrap.py index 07be1f86..74250628 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -59,7 +59,7 @@ def update_apm(): execute([npm, 'install', 'npm']) npm = os.path.join('node_modules', '.bin', 'npm') if sys.platform == 'win32': - npm += 'cmd' + npm += '.cmd' with scoped_cwd(os.path.join('vendor', 'apm')): subprocess.check_call([npm, 'install', '.']) @@ -73,7 +73,9 @@ 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', os.path.relpath(apm), 'install']) + if sys.platform in ['win32', 'cygwin']: + apm += '.cmd' + subprocess.check_call([apm, 'install']) def update_win32_python():