Allow running of test scripts from anywhere.
[dcpomatic.git] / run / dcpomatic_cli
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