From e37c6182e556b415877c69be8bd910255f064d10 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Sun, 26 Aug 2018 22:24:22 +0200 Subject: [PATCH] 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 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 1692ec1c30ad7e..c918be052711fc 100644 --- a/tools/msvs/find_python.cmd +++ b/tools/msvs/find_python.cmd @@ -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