Skip to content

Commit e37c618

Browse files
guybedfordrvagg
authored andcommitted
build: fix Python detection when depot_tools are in PATH in Windows
PR-URL: #22539 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent 7463a7f commit e37c618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/msvs/find_python.cmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
echo Looking for Python 2.x
33
SETLOCAL
44
:: If python.exe is in %Path%, just validate
5-
FOR /F "delims=" %%a IN ('where python 2^> NUL') DO (
5+
FOR /F "delims=" %%a IN ('where python.exe 2^> NUL') DO (
66
SET need_path=0
77
SET p=%%~dpa
88
IF NOT ERRORLEVEL 1 GOTO :validate

0 commit comments

Comments
 (0)