-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_eaglearn_fixed.bat
More file actions
48 lines (37 loc) · 935 Bytes
/
Copy pathrun_eaglearn_fixed.bat
File metadata and controls
48 lines (37 loc) · 935 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@echo off
setlocal EnableExtensions
REM ========================================
REM Eaglearn Application Launcher
REM ========================================
echo Starting Eaglearn Application...
echo.
REM Activate virtual environment
set "VENV_DIR=.venv_gpu"
if exist "%VENV_DIR%\Scripts\activate.bat" goto :activate
echo Virtual environment not found. Please create .venv_gpu first.
pause
exit /b 1
:activate
if exist "%VENV_DIR%\Scripts\activate.bat" (
call "%VENV_DIR%\Scripts\activate.bat"
if errorlevel 1 goto :venv_activate_fail
) else (
echo Virtual environment not found. Please create .venv or .venv_gpu first.
pause
exit /b 1
)
:venv_ok
REM Run application
python run.py
if errorlevel 1 goto :app_fail
goto :end
:venv_activate_fail
echo ERROR: Failed to activate virtual environment.
pause
exit /b 1
:app_fail
echo ERROR: Failed to start Eaglearn Application.
pause
exit /b 1
:end
exit /b 0