-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
31 lines (24 loc) · 700 Bytes
/
Copy pathrun.bat
File metadata and controls
31 lines (24 loc) · 700 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
@echo off
REM Move to this script's directory
cd %~dp0
REM Check if the venv directory exists
if not exist venv (
echo Creating virtual environment...
python -m venv venv
echo Installing requirements...
call venv\Scripts\activate
pip install -r requirements.txt
call venv\Scripts\deactivate
)
REM Activate the virtual environment
call venv\Scripts\activate
REM Start the React app in a new window
if not exist "slideshow-control\node_modules" (
start cmd /k "cd slideshow-control && npm install && npm start"
) else (
start cmd /k "cd slideshow-control && npm start"
)
REM Run the main.py script
python main.py
REM Deactivate the virtual environment
deactivate