From: Oleg Broytman Date: Tue, 14 Jan 2014 17:41:26 +0000 (+0400) Subject: Fixed a bug: use $0, not the current dir X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=c48e56e765f1974af28e3a89d08e63768ff75e31;p=audio-cdr-video.git Fixed a bug: use $0, not the current dir --- diff --git a/set-path b/set-path index 04dc7c5..b5051bc 100644 --- a/set-path +++ b/set-path @@ -1,4 +1,5 @@ -CWD="`pwd`" +CWD="`dirname \"$0\"`" +CWD="`abspath.py \"$CWD\"`" if echo "$PATH" | grep -vq "\(^\|:\)$CWD\(:\|$\)"; then PATH="$CWD:$PATH" fi