]> git.phdru.name Git - audio-cdr-video.git/commitdiff
Fixed a bug: use $0, not the current dir
authorOleg Broytman <phd@phdru.name>
Tue, 14 Jan 2014 17:41:26 +0000 (21:41 +0400)
committerOleg Broytman <phd@phdru.name>
Tue, 14 Jan 2014 17:41:26 +0000 (21:41 +0400)
set-path

index 04dc7c55cc45843052e25db6564c9d115817a3da..b5051bccc4b9c446cfa1727d1ff6818a1d41281b 100644 (file)
--- 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