setpath.sh: added a feature to request a certain python plugin version

metadata
Wenzel Jakob 2013-11-21 09:55:59 +01:00
parent c923b2ab37
commit f743c1a606
1 changed files with 6 additions and 1 deletions

View File

@ -14,7 +14,12 @@ elif [ "$ZSH_VERSION" ]; then
export MITSUBA_DIR=$(dirname "$0:A") export MITSUBA_DIR=$(dirname "$0:A")
fi 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 if [[ "$(uname)" == 'Darwin' ]]; then
export PYTHONPATH="$MITSUBA_DIR/Mitsuba.app/python/$pyver:$PYTHONPATH" export PYTHONPATH="$MITSUBA_DIR/Mitsuba.app/python/$pyver:$PYTHONPATH"
mitsuba_plugin_dir="$MITSUBA_DIR/Mitsuba.app/plugins" mitsuba_plugin_dir="$MITSUBA_DIR/Mitsuba.app/plugins"