-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_control_panel.bat
More file actions
53 lines (44 loc) · 1.24 KB
/
start_control_panel.bat
File metadata and controls
53 lines (44 loc) · 1.24 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@echo off
setlocal ENABLEEXTENSIONS
REM Always run from this script's folder
cd /d "%~dp0"
echo ================================
echo Starting Vecna Control Panel
echo ================================
echo.
REM Ensure Python is available
where python >nul 2>&1
if errorlevel 1 (
echo [ERROR] Python was not found in PATH.
echo Please install Python 3.10+ and re-run this script.
pause
exit /b 1
)
REM Create virtual environment if missing
if not exist ".venv\Scripts\python.exe" (
echo Creating virtual environment in .venv ...
python -m venv .venv
)
REM Activate virtual environment if present
if exist ".venv\Scripts\activate.bat" (
echo Activating virtual environment...
call ".venv\Scripts\activate.bat"
)
REM Upgrade pip and install dependencies (idempotent)
echo Checking and installing dependencies...
python -m pip --version >nul 2>&1 || (
echo [INFO] Installing pip...
python -m ensurepip --upgrade
)
python -m pip install --upgrade pip
if exist "requirements_complete.txt" (
python -m pip install -r requirements_complete.txt
) else if exist "requirements.txt" (
python -m pip install -r requirements.txt
)
echo.
echo Launching Vecna Control Panel...
python vecna_control_panel.py
echo.
pause
endlocal