Skip to content

Commit

Permalink
build: fix Python detection when depot_tools are in PATH in Windows
Browse files Browse the repository at this point in the history
PR-URL: nodejs#22539
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information
guybedford authored and refack committed Jan 10, 2019
1 parent 8f10e79 commit a6e2120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/msvs/find_python.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
echo Looking for Python 2.x
SETLOCAL
:: If python.exe is in %Path%, just validate
FOR /F "delims=" %%a IN ('where python 2^> NUL') DO (
FOR /F "delims=" %%a IN ('where python.exe 2^> NUL') DO (
SET need_path=0
SET p=%%~dpa
IF NOT ERRORLEVEL 1 GOTO :validate
Expand Down

0 comments on commit a6e2120

Please sign in to comment.