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 +)