summaryrefslogtreecommitdiff
path: root/run/dcpomatic_batch
diff options
context:
space:
mode:
Diffstat (limited to 'run/dcpomatic_batch')
-rwxr-xr-xrun/dcpomatic_batch4
1 files changed, 3 insertions, 1 deletions
diff --git a/run/dcpomatic_batch b/run/dcpomatic_batch
index 6a8207c14..6ff689ecf 100755
--- a/run/dcpomatic_batch
+++ b/run/dcpomatic_batch
@@ -1,6 +1,8 @@
#!/bin/bash
-export LD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:$LD_LIBRARY_PATH
+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_batch $*