mirror of https://github.com/nodejs/node.git
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
parent
7cc3b1eac5
commit
1d3e40d9aa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue