From 97286d94f42818f9d144615f5ac6ebd433759bec Mon Sep 17 00:00:00 2001 From: Jayden Elishaw <80910384+BluJay131@users.noreply.github.com> Date: Thu, 12 Oct 2023 14:15:14 -0700 Subject: [PATCH] Update StartAll.bat --- StartAll.bat | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/StartAll.bat b/StartAll.bat index 0353f0e..8333a0a 100644 --- a/StartAll.bat +++ b/StartAll.bat @@ -1,3 +1,18 @@ cd C:\Users\JAdmin\Desktop\RYBot + +@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 -python upload.py \ No newline at end of file +python upload.py + +if errorlevel 1 ( + echo An error occurred. Press any key to exit. + pause >nul +)