Allow running of test scripts from anywhere.
authorCarl Hetherington <cth@carlh.net>
Wed, 28 Jun 2017 12:10:12 +0000 (13:10 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 29 Jun 2017 10:26:56 +0000 (11:26 +0100)
run/dcpomatic_cli
run/dcpomatic_create

index 02d80a57499e19dbab14bb7807ab809b0b1d4f1d..f2cacd7a22c9ddd8ac26ae7db6cdd0b17e07c5f5 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
+
 export LD_LIBRARY_PATH=build/src/lib:build/src:/home/c.hetherington/lib:$LD_LIBRARY_PATH
 if [ "$1" == "--debug" ]; then
     shift
index b3fe330c5d5eb78fb2d48441b8b39c3c0f03a99c..7931578cfd727e584c2744d750aee42bb7faf340 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
+
 export LD_LIBRARY_PATH=build/src/lib:build/src/wx:/home/c.hetherington/lib:$LD_LIBRARY_PATH
 if [ "$1" == "--debug" ]; then
     shift