Files
RedditVideoMakerBot/run.bat
T
2023-05-28 15:38:06 +02:00

19 lines
340 B
Batchfile

@echo off
set VENV_DIR=.venv
if exist "%VENV_DIR%" (
echo Activating virtual environment...
call "%VENV_DIR%\Scripts\activate.bat"
)
echo Installing dependencies...
pip install -r requirements.txt
echo Running Python script...
python main.py
if errorlevel 1 (
echo An error occurred. Press any key to exit.
pause >nul
)