@echo off setlocal cd /d "%~dp0" where py >nul 2>&1 if errorlevel 1 goto try_python py -3 -c "import sys; raise SystemExit(0 if sys.version_info >= (3,10) else 1)" >nul 2>&1 if errorlevel 1 goto try_python py -3 "%~dp0run_all.py" %* exit /b %errorlevel% :try_python where python >nul 2>&1 if errorlevel 1 goto try_python3 python -c "import sys; raise SystemExit(0 if sys.version_info >= (3,10) else 1)" >nul 2>&1 if errorlevel 1 goto try_python3 python "%~dp0run_all.py" %* exit /b %errorlevel% :try_python3 where python3 >nul 2>&1 if errorlevel 1 goto no_python python3 -c "import sys; raise SystemExit(0 if sys.version_info >= (3,10) else 1)" >nul 2>&1 if errorlevel 1 goto no_python python3 "%~dp0run_all.py" %* exit /b %errorlevel% :no_python echo Python 3.10 or later was not found. Install a compatible Python runtime or select it explicitly. echo This launcher does not require a specific Python 3.12 runtime and installs nothing automatically. exit /b 2