From 5797d31e6f9766c88f241a5c4cf4cd9709b36b0a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 28 Jun 2017 13:10:12 +0100 Subject: [PATCH] Allow running of test scripts from anywhere. --- run/dcpomatic_cli | 2 ++ run/dcpomatic_create | 2 ++ 2 files changed, 4 insertions(+) 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 diff --git a/run/dcpomatic_create b/run/dcpomatic_create index b3fe330c5..7931578cf 100755 --- a/run/dcpomatic_create +++ b/run/dcpomatic_create @@ -1,5 +1,7 @@ #!/bin/bash +cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/.. + export LD_LIBRARY_PATH=build/src/lib:build/src/wx:/home/c.hetherington/lib:$LD_LIBRARY_PATH if [ "$1" == "--debug" ]; then shift -- 2.30.2