From f743c1a606072435b6e1a2d0cfc3fa91faf3e9da Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Thu, 21 Nov 2013 09:55:59 +0100 Subject: [PATCH] setpath.sh: added a feature to request a certain python plugin version --- setpath.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setpath.sh b/setpath.sh index 034e893d..08d93218 100755 --- a/setpath.sh +++ b/setpath.sh @@ -14,7 +14,12 @@ elif [ "$ZSH_VERSION" ]; then export MITSUBA_DIR=$(dirname "$0:A") fi -pyver=`python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])'` +if [ "$MITSUBA_PYVER" ]; then + pyver=$MITSUBA_PYVER +else + pyver=`python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])'` +fi + if [[ "$(uname)" == 'Darwin' ]]; then export PYTHONPATH="$MITSUBA_DIR/Mitsuba.app/python/$pyver:$PYTHONPATH" mitsuba_plugin_dir="$MITSUBA_DIR/Mitsuba.app/plugins"