-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRun_Server.bat
More file actions
39 lines (33 loc) Β· 1.12 KB
/
Copy pathRun_Server.bat
File metadata and controls
39 lines (33 loc) Β· 1.12 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
@echo off
title Video Link to Script Generator Setup
echo ============================================================
echo π Starting Video Link to Script Generator...
echo ============================================================
echo.
:: Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Python is not installed or not in PATH!
echo Please install Python 3.9+ from https://www.python.org/downloads/
pause
exit /b
)
:: Check if .venv exists, if not create one
if not exist ".venv" (
echo [1/3] π¦ Creating Virtual Environment...
python -m venv .venv
)
:: Activate the virtual environment
echo [2/3] π Activating Virtual Environment...
call .venv\Scripts\activate.bat
:: Install dependencies
echo [3/3] π₯ Installing Required Packages (if missing)...
python -m pip install --upgrade pip --quiet
pip install -r requirements.txt --quiet
:: Start the server
echo.
echo ============================================================
echo β
Setup Complete! Starting Server...
echo ============================================================
python app\app.py
pause