awlsim-win.bat 618 Bytes
Newer Older
1 2
@ECHO OFF

3
SET PATH=%PATH%;C:\WINDOWS;C:\WINDOWS\SYSTEM32;C:\PYTHON;C:\PYTHON34;C:\PYTHON33;C:\PYTHON32
4

Michael Büsch's avatar
Michael Büsch committed
5
SET PYPROG=awlsim-gui
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40


py -h >NUL 2>&1
if %ERRORLEVEL% EQU 0 GOTO exec_py

python3 -h >NUL 2>&1
if %ERRORLEVEL% EQU 0 GOTO exec_python3

python -h >NUL 2>&1
if %ERRORLEVEL% EQU 0 GOTO exec_python

echo Did not find Python 3.x in the PATH.
echo Please make sure Python 3.x is installed correctly.
pause
goto end


:exec_py
@ECHO ON
py -3 -O %PYPROG%
GOTO end


:exec_python3
@ECHO ON
python3 -O %PYPROG%
GOTO end


:exec_python
@ECHO ON
python -O %PYPROG%
GOTO end


Michael Büsch's avatar
Michael Büsch committed
41
:end