Skip to content

Commit 0fc79d4

Browse files
kfarnungtargos
authored andcommitted
tools,win: fix find_python error
On a machine without `python.exe` in the PATH the script was failing with: ```console > .\vcbuild.bat Looking for Python 2.x 2> was unexpected at this time. ``` Escaping the `>` seems to resolve it. PR-URL: #22797 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent 6e9f1d6 commit 0fc79d4

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
@@ -26,7 +26,7 @@ EXIT /B
2626

2727
:: Query registry sub-tree for InstallPath
2828
:find-key
29-
FOR /F "delims=" %%a IN ('REG QUERY %1 /s 2> NUL ^| findstr "2." ^| findstr InstallPath') DO IF NOT ERRORLEVEL 1 CALL :find-path %%a
29+
FOR /F "delims=" %%a IN ('REG QUERY %1 /s 2^> NUL ^| findstr "2." ^| findstr InstallPath') DO IF NOT ERRORLEVEL 1 CALL :find-path %%a
3030
EXIT /B
3131

3232
:: Parse the value of %1 as the path for python.exe

0 commit comments

Comments
 (0)