Allow xb.bat to find python from a common install path

This commit is contained in:
DrChat 2016-09-27 14:16:00 -05:00
parent a3c2b8b3f5
commit 3b7002e945
1 changed files with 4 additions and 0 deletions

4
xb.bat
View File

@ -42,6 +42,10 @@ IF %FOUND_PYTHON_EXE% EQU "" (
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.