From 2e9ecda6af502e13b47c819bf8834e472870b2e3 Mon Sep 17 00:00:00 2001 From: Kyle Farnung Date: Mon, 10 Sep 2018 13:48:48 -0700 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/22797 Reviewed-By: Richard Lau Reviewed-By: Refael Ackermann --- tools/msvs/find_python.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/msvs/find_python.cmd b/tools/msvs/find_python.cmd index 212b5275c318ae..1692ec1c30ad7e 100644 --- a/tools/msvs/find_python.cmd +++ b/tools/msvs/find_python.cmd @@ -26,7 +26,7 @@ EXIT /B :: Query registry sub-tree for InstallPath :find-key -FOR /F "delims=" %%a IN ('REG QUERY %1 /s 2> NUL ^| findstr "2." ^| findstr InstallPath') DO IF NOT ERRORLEVEL 1 CALL :find-path %%a +FOR /F "delims=" %%a IN ('REG QUERY %1 /s 2^> NUL ^| findstr "2." ^| findstr InstallPath') DO IF NOT ERRORLEVEL 1 CALL :find-path %%a EXIT /B :: Parse the value of %1 as the path for python.exe