-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathRAIN_Lab_Chat.cmd
More file actions
32 lines (29 loc) · 984 Bytes
/
RAIN_Lab_Chat.cmd
File metadata and controls
32 lines (29 loc) · 984 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
25
26
27
28
29
30
31
32
@echo off
setlocal
set "REPO_ROOT=%~dp0"
cd /d "%REPO_ROOT%"
set "VENV_PY=%REPO_ROOT%.venv\Scripts\python.exe"
if not exist "%VENV_PY%" (
echo [R.A.I.N. launcher] Local environment missing. Running installer...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%REPO_ROOT%INSTALL_RAIN.ps1" -SkipPreflight
if errorlevel 1 (
echo [R.A.I.N. launcher] Installer failed.
echo [R.A.I.N. launcher] Tip: run INSTALL_RAIN.cmd again or use python rain_lab.py --mode validate after fixing Python.
pause
exit /b 1
)
)
if not exist "%VENV_PY%" (
echo [R.A.I.N. launcher] Python runtime still missing at "%VENV_PY%".
pause
exit /b 1
)
"%VENV_PY%" "%REPO_ROOT%rain_lab.py" --mode chat --ui auto %*
set "EXIT_CODE=%ERRORLEVEL%"
if not "%EXIT_CODE%"=="0" (
echo.
echo [R.A.I.N. launcher] Session ended with exit code %EXIT_CODE%.
echo [R.A.I.N. launcher] Tip: run R.A.I.N. Lab Validate or python rain_lab.py --mode validate.
pause
)
exit /b %EXIT_CODE%