summaryrefslogtreecommitdiff
path: root/run/dcpomatic_cli
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-06-28 13:10:12 +0100
committerCarl Hetherington <cth@carlh.net>2017-06-29 11:26:56 +0100
commit5797d31e6f9766c88f241a5c4cf4cd9709b36b0a (patch)
treedc930b1647d4287ff680e2c8ee42edfe9d39f825 /run/dcpomatic_cli
parentbaf84885a777378b9ff5c05ef24d6361560822a6 (diff)
Allow running of test scripts from anywhere.
Diffstat (limited to 'run/dcpomatic_cli')
-rwxr-xr-xrun/dcpomatic_cli2
1 files changed, 2 insertions, 0 deletions
diff --git a/run/dcpomatic_cli b/run/dcpomatic_cli
index 02d80a574..f2cacd7a2 100755
--- a/run/dcpomatic_cli
+++ b/run/dcpomatic_cli
@@ -1,5 +1,7 @@
#!/bin/bash
+cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
+
export LD_LIBRARY_PATH=build/src/lib:build/src:/home/c.hetherington/lib:$LD_LIBRARY_PATH
if [ "$1" == "--debug" ]; then
shift