fixed setpath.sh (ZSH) so that it still works when called from another directory

metadata
Wenzel Jakob 2012-10-19 22:48:21 -04:00
parent b36ac39b36
commit f041cd58eb
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ if [ "$BASH_VERSION" ]; then
MITSUBA_DIR=$(dirname "$BASH_SOURCE")
export MITSUBA_DIR=$(builtin cd "$MITSUBA_DIR"; builtin pwd)
elif [ "$ZSH_VERSION" ]; then
export MITSUBA_DIR=$(dirname "$0")
export MITSUBA_DIR=$(dirname "$0:A")
# Zsh autocomplete for mitsuba, mtsutil, and mtssrv
mitsuba_plugins=$(ls -1 "$MITSUBA_DIR/dist/plugins" | grep -oE '\w+.so' | sed 's/.so$//')