build: fix Python detection when depot_tools are in PATH in Windows

PR-URL: https://github.com/nodejs/node/pull/22539
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
pull/24561/head
Guy Bedford 2018-08-26 22:24:22 +02:00 committed by Rich Trott
parent 7cc3b1eac5
commit 1d3e40d9aa
1 changed files with 1 additions and 1 deletions

View File

@ -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