-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_clock.bat
39 lines (32 loc) · 980 Bytes
/
run_clock.bat
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
@echo off
SETLOCAL EnableExtensions
REM Clock Overlay Application Launcher
echo Starting Clock Overlay Application...
REM Check if virtual environment exists
if not exist .venv\Scripts\activate.bat (
echo Error: Virtual environment not found.
echo Please ensure a virtual environment named "venv" exists in the same directory as this script.
pause
exit /b 1
)
REM Check if main.py exists
if not exist main.py (
echo Error: main.py not found.
echo Please ensure main.py is in the same directory as this script.
pause
exit /b 1
)
REM Activate virtual environment and run main.py
echo Activating virtual environment...
call .venv\Scripts\activate.bat
if %ERRORLEVEL% neq 0 (
echo Error: Failed to activate virtual environment.
pause
exit /b 1
)
echo Running Clock Overlay Application...
start /B pythonw main.py %*
REM Deactivate virtual environment
call .venv\Scripts\deactivate.bat
echo Clock Overlay Application closed.
exit /b 0