You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
392 B
21 lines
392 B
2 years ago
|
@echo off
|
||
|
set VENV_DIR=.venv
|
||
|
|
||
|
if exist "%VENV_DIR%" (
|
||
|
echo Activating virtual environment...
|
||
|
call "%VENV_DIR%\Scripts\activate.bat"
|
||
|
)
|
||
|
|
||
|
echo Running Python script...
|
||
|
python main.py
|
||
|
|
||
|
if errorlevel 1 (
|
||
|
echo An error occurred. Press any key to exit.
|
||
|
pause >nul
|
||
|
)
|
||
|
|
||
|
if exist "%VENV_DIR%" (
|
||
|
echo Deactivating virtual environment...
|
||
|
call "%VENV_DIR%\Scripts\deactivate.bat"
|
||
|
)
|