diff --git a/base/switch_python b/base/switch_python index 224028b..db4f166 100755 --- a/base/switch_python +++ b/base/switch_python @@ -3,8 +3,9 @@ set -e NEWV=$1 -if [[ "$NEWV" == "3.11" ]]; then - echo "using default python 3.11" +CURV=$(python3 --version) +if [[ "${CURV//Python /}" == *"$NEWV"* ]]; then + echo "using default python $CURV" exit 0 fi