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 Trott committed Nov 21, 2018
1 parent 7cc3b1e commit 1d3e40d
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 1d3e40d

Please sign in to comment.