16 lines
323 B
Batchfile
16 lines
323 B
Batchfile
@echo off
|
|
setlocal
|
|
cd /d "%~dp0"
|
|
title Statboard - backend and PostgreSQL
|
|
if exist ".venv\Scripts\python.exe" (
|
|
".venv\Scripts\python.exe" -u "start_dashboard.py" %*
|
|
) else (
|
|
py -3 -u "start_dashboard.py" %*
|
|
)
|
|
if errorlevel 1 (
|
|
echo.
|
|
echo Dashboard startup failed. See the error above.
|
|
pause
|
|
)
|
|
endlocal
|