-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
57 lines (46 loc) · 1.22 KB
/
Copy pathstart.bat
File metadata and controls
57 lines (46 loc) · 1.22 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
54
55
56
57
@echo off
REM Pyrox Launcher
REM This script activates the virtual environment and starts the application
echo ======================================
echo Pyrox Application Launcher
echo ======================================
echo.
REM Get the directory where this script is located
set "SCRIPT_DIR=%~dp0"
cd /d "%SCRIPT_DIR%"
REM Check if virtual environment exists
if not exist ".venv\Scripts\activate.bat" (
echo ERROR: Virtual environment not found!
echo.
echo Please run install.sh first to set up the environment.
echo.
pause
exit /b 1
)
echo Activating virtual environment...
call .venv\Scripts\activate.bat
if errorlevel 1 (
echo ERROR: Failed to activate virtual environment.
echo.
pause
exit /b 1
)
echo Virtual environment activated successfully.
echo.
echo Starting Pyrox application...
echo.
echo ======================================
echo.
REM Run the application as a module
python -m pyrox
REM Capture the exit code
set EXIT_CODE=%errorlevel%
echo.
echo ======================================
echo Application exited with code: %EXIT_CODE%
echo ======================================
echo.
REM Deactivate virtual environment
call deactivate 2>nul
pause
exit /b %EXIT_CODE%