]> git.phdru.name Git - audio-cdr-video.git/blobdiff - set-path
Get full path using cd/pwd and then cd back
[audio-cdr-video.git] / set-path
index b5051bccc4b9c446cfa1727d1ff6818a1d41281b..563250487b362bf8946881703f3a88f596234c19 100644 (file)
--- a/set-path
+++ b/set-path
@@ -1,5 +1,7 @@
-CWD="`dirname \"$0\"`"
-CWD="`abspath.py \"$CWD\"`"
+START_DIR="`pwd`"
+cd "`dirname \"$0\"`"
+CWD="`pwd`"
+cd "$START_DIR"
 if echo "$PATH" | grep -vq "\(^\|:\)$CWD\(:\|$\)"; then
    PATH="$CWD:$PATH"
 fi