@echo off
REM Double-click to run COG on Windows.
cd /d "%~dp0"
echo ===============================
echo    COG - starting local server
echo    (leave this window open; close it to stop)
echo ===============================
echo.

REM Prefer the "py" launcher - it only exists with a real Python 3 install.
where py >nul 2>nul && (py -3 serve.py & exit /b)
where python >nul 2>nul && (python serve.py & exit /b)

echo Python 3 was not found on this PC.
echo Install it from  https://www.python.org/downloads/
echo IMPORTANT: during install, CHECK "Add python.exe to PATH".
echo Then double-click this file again.
echo.
pause
