From 2fe2009b9705a0927f805dfd1228eb5214dd4345 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 12 Dec 2024 12:12:59 -0800 Subject: [PATCH] Update install.sh --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index ca5141b..92bdfd0 100755 --- a/install.sh +++ b/install.sh @@ -76,7 +76,11 @@ if [ $venv == "y" ]; then sudo apt-get install python3-venv fi # double check for python3-venv - if ! python3 -m venv --help &> /dev/null; then + if [ -f venv/bin/activate ]; then + printf "\nFound virtual environment for python\n" + python3 -m venv venv + source venv/bin/activate + else printf "\nPython3 venv module not found, please install python3-venv with your OS\n" exit 1 fi