Skip to content

Commit ed9f824

Browse files
committed
Revert "build: use %PYTHON% instead of python"
This reverts commit 91943a9.
1 parent 77db7e1 commit ed9f824

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

vcbuild.bat

+4-6
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,10 @@ if defined noprojgen goto msbuild
8989

9090
if defined NIGHTLY set TAG=nightly-%NIGHTLY%
9191

92-
if not defined PYTHON set PYTHON=python
93-
9492
@rem Generate the VS project.
9593
SETLOCAL
9694
if defined VS100COMNTOOLS call "%VS100COMNTOOLS%\VCVarsQueryRegistry.bat"
97-
"%PYTHON%" configure %download_arg% %i18n_arg% %debug_arg% %snapshot_arg% %noetw_arg% %noperfctr_arg% --dest-cpu=%target_arch% --tag=%TAG%
95+
python configure %download_arg% %i18n_arg% %debug_arg% %snapshot_arg% %noetw_arg% %noperfctr_arg% --dest-cpu=%target_arch% --tag=%TAG%
9896
if errorlevel 1 goto create-msvs-files-failed
9997
if not exist node.sln goto create-msvs-files-failed
10098
echo Project files generated.
@@ -176,14 +174,14 @@ if "%config%"=="Release" set test_args=--mode=release %test_args%
176174
echo running 'cctest'
177175
"%config%\cctest"
178176
echo running 'python tools/test.py %test_args%'
179-
"%PYTHON%" tools/test.py %test_args%
177+
python tools/test.py %test_args%
180178
goto jslint
181179

182180
:jslint
183181
if not defined jslint goto exit
184182
echo running jslint
185183
set PYTHONPATH=tools/closure_linter/;tools/gflags/
186-
"%PYTHON%" tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc -r lib/ -r src/ --exclude_files lib/punycode.js
184+
python tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc -r lib/ -r src/ --exclude_files lib/punycode.js
187185
goto exit
188186

189187
:create-msvs-files-failed
@@ -208,6 +206,6 @@ rem ***************
208206

209207
:getnodeversion
210208
set NODE_VERSION=
211-
for /F "usebackq tokens=*" %%i in (`"%PYTHON%" "%~dp0tools\getnodeversion.py"`) do set NODE_VERSION=%%i
209+
for /F "usebackq tokens=*" %%i in (`python "%~dp0tools\getnodeversion.py"`) do set NODE_VERSION=%%i
212210
if not defined NODE_VERSION echo Cannot determine current version of io.js & exit /b 1
213211
goto :EOF

0 commit comments

Comments
 (0)