-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
36 lines (30 loc) · 825 Bytes
/
run.bat
File metadata and controls
36 lines (30 loc) · 825 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
@echo off
setlocal
title _TextTOUCHER Launcher
echo =============================================
echo Launching The _TextTOUCHER
echo =============================================
:: 1. Check if the virtual environment exists
if not exist ".venv\Scripts\activate.bat" (
echo [ERROR] Virtual environment not found.
echo Please ensure .venv is located in this directory.
pause
exit /b
)
:: 2. Activate the environment
echo [1/2] Activating virtual environment...
call .venv\Scripts\activate.bat
:: 3. Run the application
echo [2/2] Starting the _TextTOUCHER...
python -m src.app
:: 4. Handle exit
if %ERRORLEVEL% neq 0 (
echo.
echo [alert] Application closed with an error (Code: %ERRORLEVEL%)
pause
) else (
echo.
echo Application closed successfully.
)
deactivate
endlocal