X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=run%2Fdcpomatic_disk;h=a4b4ead55f8907273db321bcb9ae875c0725516b;hb=bb92dba6baceae7ffebe4594d73730b705f6924e;hp=591fc01fe3c69d49616c41e1bb7ec6db33f9beb5;hpb=afc5e15caf89f2b1eae401e671a379f6ae4bc930;p=dcpomatic.git diff --git a/run/dcpomatic_disk b/run/dcpomatic_disk index 591fc01fe..a4b4ead55 100755 --- a/run/dcpomatic_disk +++ b/run/dcpomatic_disk @@ -1,7 +1,8 @@ #!/bin/bash -export LD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:$LD_LIBRARY_PATH -export DYLD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:$HOME/osx-environment/x86_64/lib +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_disk $*