From cbdc5542e149eb59f3c857caf760deacd37ace6e Mon Sep 17 00:00:00 2001 From: Jayden Elishaw <80910384+BluJay131@users.noreply.github.com> Date: Thu, 12 Oct 2023 14:13:18 -0700 Subject: [PATCH] Update upload.bat --- upload.bat | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/upload.bat b/upload.bat index c485f70..fa76f62 100644 --- a/upload.bat +++ b/upload.bat @@ -1,2 +1,15 @@ +@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 upload.py -pause \ No newline at end of file + +if errorlevel 1 ( + echo An error occurred. Press any key to exit. + pause >nul +)