15 lines
298 B
Batchfile
15 lines
298 B
Batchfile
@echo off
|
|
setlocal
|
|
cd /d "%~dp0"
|
|
if exist ".venv-web\Scripts\python.exe" (
|
|
".venv-web\Scripts\python.exe" -B -m ranch_web %*
|
|
) else (
|
|
python -B -m ranch_web %*
|
|
)
|
|
if errorlevel 1 (
|
|
echo.
|
|
echo Web startup failed. Use Python 3.12+ and install ranch_web/requirements.txt.
|
|
pause
|
|
exit /b 1
|
|
)
|