@@ -89,10 +89,12 @@ if defined noprojgen goto msbuild
89
89
90
90
if defined NIGHTLY set TAG = nightly-%NIGHTLY%
91
91
92
+ if not defined PYTHON set PYTHON = python
93
+
92
94
@ rem Generate the VS project.
93
95
SETLOCAL
94
96
if defined VS100COMNTOOLS call " %VS100COMNTOOLS% \VCVarsQueryRegistry.bat"
95
- python configure %download_arg% %i18n_arg% %debug_arg% %snapshot_arg% %noetw_arg% %noperfctr_arg% --dest-cpu=%target_arch% --tag=%TAG%
97
+ " %PYTHON% " configure %download_arg% %i18n_arg% %debug_arg% %snapshot_arg% %noetw_arg% %noperfctr_arg% --dest-cpu=%target_arch% --tag=%TAG%
96
98
if errorlevel 1 goto create-msvs-files-failed
97
99
if not exist node.sln goto create-msvs-files-failed
98
100
echo Project files generated.
@@ -174,14 +176,14 @@ if "%config%"=="Release" set test_args=--mode=release %test_args%
174
176
echo running 'cctest'
175
177
" %config% \cctest"
176
178
echo running 'python tools/test.py %test_args% '
177
- python tools/test.py %test_args%
179
+ " %PYTHON% " tools/test.py %test_args%
178
180
goto jslint
179
181
180
182
:jslint
181
183
if not defined jslint goto exit
182
184
echo running jslint
183
185
set PYTHONPATH = tools/closure_linter/;tools/gflags/
184
- python tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc -r lib/ -r src/ --exclude_files lib/punycode.js
186
+ " %PYTHON% " tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc -r lib/ -r src/ --exclude_files lib/punycode.js
185
187
goto exit
186
188
187
189
:create-msvs-files-failed
@@ -206,6 +208,6 @@ rem ***************
206
208
207
209
:getnodeversion
208
210
set NODE_VERSION =
209
- for /F " usebackq tokens=*" %%i in (`python " %~dp0 tools\getnodeversion.py" `) do set NODE_VERSION = %%i
211
+ for /F " usebackq tokens=*" %%i in (`" %PYTHON% " " %~dp0 tools\getnodeversion.py" `) do set NODE_VERSION = %%i
210
212
if not defined NODE_VERSION echo Cannot determine current version of io.js & exit /b 1
211
213
goto :EOF
0 commit comments