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.
16 lines
275 B
16 lines
275 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
|
||
|
)
|