File size: 965 Bytes
973efa6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
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
@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