diff --git a/launch.sh b/launch.sh index 7a3f8b5f6..e97a2fe84 100755 --- a/launch.sh +++ b/launch.sh @@ -1,5 +1,9 @@ #!/bin/bash -BASE=`pwd`/`dirname $0` +if [[ $0 == /* ]]; then + BASE=`dirname $0` +else + BASE=`pwd`/`dirname $0` +fi OS=`uname -s` if [ "x${OS}" == "xDarwin" ]; then