From f49a07e8e3908abd843b558e2c8662ea726665b3 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 10 Jul 2024 15:28:05 -0700 Subject: [PATCH] Update launch.sh --- launch.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/launch.sh b/launch.sh index 242255b..5536763 100755 --- a/launch.sh +++ b/launch.sh @@ -4,7 +4,11 @@ echo "Launches the bot in a virtual environment" # activate the virtual environment -source venv/bin/activate + +#look for venv folder and activate it if found +if [ -d "venv" ]; then + source venv/bin/activate +fi # launch the application