Merge branch '2323-player-locking'
[dcpomatic.git] / run / dcpomatic_create
index 7931578cfd727e584c2744d750aee42bb7faf340..693f9a05d10b7c9f0b23aafeffd373c4046a5fef 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/bash
 
-cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+source $DIR/environment
 
-export LD_LIBRARY_PATH=build/src/lib:build/src/wx:/home/c.hetherington/lib:$LD_LIBRARY_PATH
 if [ "$1" == "--debug" ]; then
     shift
     gdb --args build/src/tools/dcpomatic2_create $*