-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun_app.bat
More file actions
32 lines (28 loc) · 762 Bytes
/
run_app.bat
File metadata and controls
32 lines (28 loc) · 762 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
@echo off
echo Starting OneDrive Space Analyzer...
:: Check if Python is available
python --version >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo Python is not installed or not in the PATH. Please install Python 3.7+
pause
exit /b 1
)
:: Check if the virtual environment exists
if not exist venv (
echo Creating virtual environment...
python -m venv venv
echo Installing required packages...
call venv\Scripts\activate.bat
pip install -r requirements.txt
if %ERRORLEVEL% NEQ 0 (
echo Failed to install dependencies. Please check the requirements.txt file.
pause
exit /b 1
)
) else (
call venv\Scripts\activate.bat
)
:: Run the application
echo Starting the OneDrive Analyzer...
python app.py
pause