From 9d0a11580f9965ce470cf2eda3c4ba1503eba729 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 28 Mar 2014 09:30:15 +0000 Subject: [PATCH] Fix calling apm for apm 0.37.0. --- script/bootstrap.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(): -- 2.43.0