Tidy up the run/ directory a little.
[dcpomatic.git] / run / dcpomatic_kdm_cli
index 0f75232cb68696c459658e67b5dac1bc5da51cb3..e9d0f300ad26ff3d99a6d2a182c4163d7f1fd563 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:/home/c.hetherington/lib:$LD_LIBRARY_PATH:build/src
 if [ "$1" == "--debug" ]; then
     shift
     gdb --args build/src/tools/dcpomatic2_kdm_cli "$@"