-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
39 lines (35 loc) · 1 KB
/
run.bat
File metadata and controls
39 lines (35 loc) · 1 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
@echo off
:: Check for Python installation
echo Checking for Python installation...
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Python is not installed or not added to PATH. Please install Python 3.7 or higher and ensure it is in PATH.
pause
exit /b
)
:: Check for pip installation
echo Checking for pip...
pip --version >nul 2>&1
if %errorlevel% neq 0 (
echo Pip is not installed or not added to PATH. Please install pip and try again.
pause
exit /b
)
:: Install required dependencies
echo Installing required dependencies...
pip install -r requirements.txt
if %errorlevel% neq 0 (
echo Failed to install dependencies. Please check the contents of requirements.txt and your internet connection.
pause
exit /b
)
:: Run the application
echo Running the application...
python src\convert.py
if %errorlevel% neq 0 (
echo The application encountered an error. Please check your script and input files.
pause
exit /b
)
echo Application completed successfully!
pause