diff options
author | Jason Ginchereau <jasongin@microsoft.com> | 2017-07-30 23:32:43 -0700 |
---|---|---|
committer | Jason Ginchereau <jasongin@microsoft.com> | 2017-08-01 10:56:04 -0700 |
commit | cee8d6d65e650baafb19986513c1971a5a556cb2 (patch) | |
tree | ca2f1970c06afacb32c22acf2a4543b374957f3d /tools/msvs | |
parent | ff1a51920ecd65328c1e7065e1d1d4313379195f (diff) | |
download | android-node-v8-cee8d6d65e650baafb19986513c1971a5a556cb2.tar.gz android-node-v8-cee8d6d65e650baafb19986513c1971a5a556cb2.tar.bz2 android-node-v8-cee8d6d65e650baafb19986513c1971a5a556cb2.zip |
build,win: fix python detection script
Handle spaces in the path to python.exe, in case it is installed
under some directory like "C:\Program Files".
PR-URL: https://github.com/nodejs/node/pull/14546
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'tools/msvs')
-rw-r--r-- | tools/msvs/find_python.cmd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/msvs/find_python.cmd b/tools/msvs/find_python.cmd index 9b67764c75..f2a779290e 100644 --- a/tools/msvs/find_python.cmd +++ b/tools/msvs/find_python.cmd @@ -41,7 +41,7 @@ EXIT /B 1 :validate IF NOT EXIST "%p%python.exe" EXIT /B 1 :: Check if %p% is python2 -%p%python.exe -V 2>&1 | findstr /R "^Python.2.*" > NUL +"%p%python.exe" -V 2>&1 | findstr /R "^Python.2.*" > NUL IF ERRORLEVEL 1 EXIT /B %ERRORLEVEL% :: We can wrap it up ENDLOCAL & SET pt=%p%& SET need_path_ext=%need_path% |