| 123456789101112131415161718 |
- @echo off
- setlocal
- cd /d "%~dp0"
- where py >nul 2>nul
- if errorlevel 1 goto use_python
- py -3.12 -c "import sys; raise SystemExit(0 if sys.version_info[:2] == (3, 12) else 1)" >nul 2>nul
- if errorlevel 1 goto use_python
- py -3.12 board_viewer.py serve --open-browser
- goto finished
- :use_python
- python board_viewer.py serve --open-browser
- :finished
- set "BOARD_VIEWER_EXIT=%ERRORLEVEL%"
- if not "%BOARD_VIEWER_EXIT%"=="0" pause
- exit /b %BOARD_VIEWER_EXIT%
|