Files
2026-11-13 18:48:00 +03:00

25 lines
529 B
Batchfile

@echo off
setlocal
py -3 -c "import sys; sys.exit(sys.version_info < (3, 11))" >nul 2>&1
if not errorlevel 1 goto use_launcher
python -c "import sys; sys.exit(sys.version_info < (3, 11))" >nul 2>&1
if not errorlevel 1 goto use_python
echo Python 3.11 or newer is required. Install it and run start.cmd again.
pause
exit /b 1
:use_launcher
py -3 "%~dp0start.py" %*
goto finished
:use_python
python "%~dp0start.py" %*
:finished
set "result=%errorlevel%"
if not "%result%"=="0" if not "%result%"=="130" pause
exit /b %result%