diff --git a/setpath.sh b/setpath.sh index e43ffcc9..706b0b1f 100755 --- a/setpath.sh +++ b/setpath.sh @@ -27,7 +27,7 @@ fi if [ "$MITSUBA_PYVER" ]; then pyver=$MITSUBA_PYVER else - pyver=`python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])'` + pyver=`python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])' | head -n1` fi if [[ "$(uname)" == 'Darwin' ]]; then