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: #22539
Reviewed-By: Bartosz Sosnowski <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
  • Loading branch information
guybedford authored and codebytere committed Jan 29, 2019
1 parent 0a6f13d commit 849c078
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 849c078

Please sign in to comment.