From 3409ec15d1517f5dd60355136c02c08cdbea77f5 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Fri, 28 Jul 2017 22:05:46 +0200 Subject: [PATCH] fixed parsing of Python version for Anaconda --- setpath.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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