-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_greco_web.bat
More file actions
24 lines (24 loc) · 885 Bytes
/
Copy pathrun_greco_web.bat
File metadata and controls
24 lines (24 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
REM Launch Greco Web (Phase 1, FastAPI) — the local browser version of Greco.
REM This is SEPARATE from the desktop app: run_greco.bat, the desktop icon,
REM and Greco.exe are all unaffected. Stop the server with Ctrl+C.
REM Uses the project venv interpreter (see run_greco.bat for why a bare "python" fails).
set PYTHONUTF8=1
cd /d "%~dp0"
if not exist "%~dp0venv\Scripts\python.exe" (
echo ERROR: Greco's Python environment is missing at:
echo "%~dp0venv\Scripts\python.exe"
echo Rebuild it from this folder:
echo python -m venv venv
echo venv\Scripts\python -m pip install -r requirements.txt
echo.
pause
exit /b 1
)
echo Starting Greco Web...
echo Your browser will open automatically. If it does not, go to http://127.0.0.1:5000
echo.
"%~dp0venv\Scripts\python.exe" -m web.main
echo.
echo Greco Web has stopped. Press any key to exit.
pause >nul