From ac0d6f88697940757dc1d4a337f79a4cef195137 Mon Sep 17 00:00:00 2001 From: kingbri Date: Wed, 27 Dec 2023 01:13:13 -0500 Subject: [PATCH] Tree: Format and cleanup start Signed-off-by: kingbri --- main.py | 1 + start.bat | 5 +++-- start.py | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 7c5f2c63..07b98afa 100644 --- a/main.py +++ b/main.py @@ -526,5 +526,6 @@ def entrypoint(): log_level="debug", ) + if __name__ == "__main__": entrypoint() diff --git a/start.bat b/start.bat index 5816eed8..c7b83304 100644 --- a/start.bat +++ b/start.bat @@ -10,10 +10,11 @@ if exist "%CONDA_PREFIX%" ( echo It looks like you're in a conda environment. Skipping venv check. ) else ( if not exist "venv\" ( - echo "Venv doesn't exist! Creating one for you." + echo Venv doesn't exist! Creating one for you. python -m venv venv - call .\venv\Scripts\activate.bat ) + + call .\venv\Scripts\activate.bat ) :: Call the python script with batch args diff --git a/start.py b/start.py index ba220e62..7bb80408 100644 --- a/start.py +++ b/start.py @@ -44,6 +44,8 @@ def get_argparser(): if __name__ == "__main__": + subprocess.run("pip -V") + parser = get_argparser() args = parser.parse_args()