From f041cd58eb4f79689370a374d85ed5473f1bb96e Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Fri, 19 Oct 2012 22:48:21 -0400 Subject: [PATCH] fixed setpath.sh (ZSH) so that it still works when called from another directory --- setpath.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setpath.sh b/setpath.sh index de950347..12cfe5cb 100644 --- a/setpath.sh +++ b/setpath.sh @@ -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$//')