Permalink
Browse files

Slightly better python-finding.

  • Loading branch information...
1 parent 3b7002e commit 880835d9b565a83ba610ecb480f93be4c63a7c2e @DrChat DrChat committed Sep 28, 2016
Showing with 3 additions and 4 deletions.
  1. +3 −4 xb.bat
View
@@ -37,16 +37,15 @@ IF NOT ERRORLEVEL 1 (
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.
ENDLOCAL & SET _RESULT=1

0 comments on commit 880835d

Please sign in to comment.