File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ EXIT /B 1
4141:validate
4242IF NOT EXIST " %p% python.exe" EXIT /B 1
4343:: Check if %p% is python2
44- %p% python.exe -V 2 >& 1 | findstr /R " ^Python.2.*" > NUL
44+ " %p% python.exe" -V 2 >& 1 | findstr /R " ^Python.2.*" > NUL
4545IF ERRORLEVEL 1 EXIT /B %ERRORLEVEL%
4646:: We can wrap it up
4747ENDLOCAL & SET pt = %p% & SET need_path_ext = %need_path%
Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ goto exit
378378:run-python
379379call tools\msvs\find_python.cmd
380380if errorlevel 1 echo Could not find python2 & goto :exit
381- set cmd1 = %VCBUILD_PYTHON_LOCATION% %*
381+ set cmd1 = " %VCBUILD_PYTHON_LOCATION% " %*
382382echo %cmd1%
383383%cmd1%
384384exit /b %ERRORLEVEL%
@@ -396,7 +396,7 @@ set TAG=
396396set FULLVERSION =
397397:: Call as subroutine for validation of python
398398call :run-python tools\getnodeversion.py > nul
399- for /F " tokens=*" %%i in ('%VCBUILD_PYTHON_LOCATION% tools\getnodeversion.py') do set NODE_VERSION = %%i
399+ for /F " tokens=*" %%i in ('" %VCBUILD_PYTHON_LOCATION% " tools\getnodeversion.py') do set NODE_VERSION = %%i
400400if not defined NODE_VERSION (
401401 echo Cannot determine current version of Node.js
402402 exit /b 1
You can’t perform that action at this time.
0 commit comments