-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_setup.bat
More file actions
30 lines (25 loc) · 800 Bytes
/
Copy pathrun_setup.bat
File metadata and controls
30 lines (25 loc) · 800 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
REM Run setup_and_run.py on Windows
REM Check if .venv exists
if not exist ".venv" (
echo [ERROR] Virtual environment not found. Please run setup_and_run.py to create it.
pause
exit /b 1
)
REM Check if Python exists in the virtual environment
if not exist ".\.venv\Scripts\python.exe" (
echo [ERROR] Python executable not found in the virtual environment. Something may be wrong with the setup.
pause
exit /b 1
)
REM Inform user and run the script
echo Starting setup_and_run.py...
call .\.venv\Scripts\python.exe setup_and_run.py
REM Check exit code of the Python script
if %ERRORLEVEL% NEQ 0 (
echo [ERROR] setup_and_run.py encountered an error.
pause
exit /b %ERRORLEVEL%
)
echo Script completed successfully.
pause