File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ EXIT /B 1
41
41
:validate
42
42
IF NOT EXIST " %p% python.exe" EXIT /B 1
43
43
:: 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
45
45
IF ERRORLEVEL 1 EXIT /B %ERRORLEVEL%
46
46
:: We can wrap it up
47
47
ENDLOCAL & 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
378
378
:run-python
379
379
call tools\msvs\find_python.cmd
380
380
if errorlevel 1 echo Could not find python2 & goto :exit
381
- set cmd1 = %VCBUILD_PYTHON_LOCATION% %*
381
+ set cmd1 = " %VCBUILD_PYTHON_LOCATION% " %*
382
382
echo %cmd1%
383
383
%cmd1%
384
384
exit /b %ERRORLEVEL%
@@ -396,7 +396,7 @@ set TAG=
396
396
set FULLVERSION =
397
397
:: Call as subroutine for validation of python
398
398
call :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
400
400
if not defined NODE_VERSION (
401
401
echo Cannot determine current version of Node.js
402
402
exit /b 1
You can’t perform that action at this time.
0 commit comments