X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=run%2Fdcpomatic_create;h=7f88082bd02a7583b7439336abbeaf4417ed0c9f;hp=b3fe330c5d5eb78fb2d48441b8b39c3c0f03a99c;hb=HEAD;hpb=21d5ca8c20193c3e62f4b0ca5033ebe0bc2ea21d diff --git a/run/dcpomatic_create b/run/dcpomatic_create index b3fe330c5..693f9a05d 100755 --- a/run/dcpomatic_create +++ b/run/dcpomatic_create @@ -1,6 +1,8 @@ #!/bin/bash -export LD_LIBRARY_PATH=build/src/lib:build/src/wx:/home/c.hetherington/lib:$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_create $*