forked from topherchris420/james_library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRAIN_Lab_Chat.cmd
More file actions
30 lines (27 loc) · 763 Bytes
/
RAIN_Lab_Chat.cmd
File metadata and controls
30 lines (27 loc) · 763 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
@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.
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%.
pause
)
exit /b %EXIT_CODE%