From 8dabdf7f2e73d4757fb90005ebc183352734a4c1 Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Tue, 8 Dec 2020 20:53:35 +0100 Subject: [PATCH] Loose coupling for Python version. #61 --- run.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/run.sh b/run.sh index 2ea17f19..5881a7ab 100755 --- a/run.sh +++ b/run.sh @@ -32,15 +32,9 @@ echo "[ Run mode=$mode ]" echo "[ Docker=$docker ]" -# Find the correct Python version (3.8 or 3.9) - -if hash python3.9 2>/dev/null; then - PYTHON_EXEC="python3.9" - echo "[ Using Python 3.9 ]" -else - PYTHON_EXEC="python3.8" - echo "[ Using Python 3.8 ]" -fi +# Check for the correct Python version (3.8+) +PYTHON_EXEC="python3" +echo "[ Using $(python3 -V) ]" # +++ DEFAULT COMMANDS +++ # -- GitLab