-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStart.bat
More file actions
29 lines (27 loc) · 735 Bytes
/
Copy pathStart.bat
File metadata and controls
29 lines (27 loc) · 735 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
@echo off
title PrefNet Studio
if not exist .venv (
echo [PrefNet] Setting up virtual environment...
python -m venv .venv
if %errorlevel% neq 0 (
echo [ERROR] Failed to create virtual environment. Make sure Python is installed and in your PATH.
pause
exit /b %errorlevel%
)
call .venv\Scripts\activate
echo [PrefNet] Installing dependencies...
pip install -r requirements.txt --quiet
if %errorlevel% neq 0 (
echo [ERROR] Dependency installation failed.
pause
exit /b %errorlevel%
)
) else (
call .venv\Scripts\activate
)
python server.py
if %errorlevel% neq 0 (
echo.
echo PrefNet Studio exited with error code %errorlevel%.
pause
)