From 880835d9b565a83ba610ecb480f93be4c63a7c2e Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Wed, 28 Sep 2016 18:30:45 -0500 Subject: [PATCH] Slightly better python-finding. --- xb.bat | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xb.bat b/xb.bat index dd9dd17d2..3133b01a4 100644 --- a/xb.bat +++ b/xb.bat @@ -36,16 +36,15 @@ IF NOT ERRORLEVEL 1 ( ECHO FOUND PYTHON 2 SET FOUND_PYTHON_EXE=python2 ) +IF %FOUND_PYTHON_EXE% EQU "" ( + IF EXIST c:\\python27\\python.exe SET FOUND_PYTHON_EXE=C:\\python27\\python.exe +) IF %FOUND_PYTHON_EXE% EQU "" ( 1>NUL 2>NUL CMD /c where python IF NOT ERRORLEVEL 1 ( SET FOUND_PYTHON_EXE=python ) ) -IF %FOUND_PYTHON_EXE% EQU "" ( - ECHO Found from fs - IF EXIST c:\python27\python.exe SET FOUND_PYTHON_EXE=C:\python27\python.exe -) IF %FOUND_PYTHON_EXE% EQU "" ( ECHO ERROR: no Python executable found on PATH. ECHO Make sure you can run 'python' or 'python2' in a Command Prompt.