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