Tidy up the run/ directory a little.
[dcpomatic.git] / run / dcpomatic_kdm
index b523f01c6452d453c5696b3a457e7cf5edf1e385..d0160ef7a3997a0db9a90167a34e42b9ec15eea1 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/bash
 
-export LD_LIBRARY_PATH=build/src/lib:build/src/wx:/home/c.hetherington/lib:$LD_LIBRARY_PATH
-export DYLD_LIBRARY_PATH=build/src/lib:build/src/wx:/carl/Environment/64/lib
-export DCPOMATIC_GRAPHICS=graphics
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+source $DIR/environment
+
 if [ "$1" == "--debug" ]; then
     shift
     gdb --args build/src/tools/dcpomatic2_kdm $*