X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=run%2Fdcpomatic_disk;fp=run%2Fdcpomatic_disk;h=a4b4ead55f8907273db321bcb9ae875c0725516b;hb=27312cda2990371d7bf44a94a7513b0117db6ac1;hp=591fc01fe3c69d49616c41e1bb7ec6db33f9beb5;hpb=11aac314d1e87beb51907419b93caaede52e8844;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 $*