setpath.sh: added a feature to request a certain python plugin version
parent
c923b2ab37
commit
f743c1a606
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue