#!/bin/sh current_exe_dir=$(dirname $0) # Does readlink -f work on MacOSX? Possibly not. I don't know what to # do about it yet. systype=$(uname) if [ $systype = Darwin ] ; then prfx=$(dirname "$current_exe_dir") if [ -z "$DYLD_FALLBACK_LIBRARY_PATH" ] ; then DYLD_FALLBACK_LIBRARY_PATH=$prfx/lib else DYLD_FALLBACK_LIBRARY_PATH=$prfx/lib:${DYLD_FALLBACK_LIBRARY_PATH} fi export DYLD_FALLBACK_LIBRARY_PATH else prfx=$(readlink -f $(dirname "$current_exe_dir")) export LD_LIBRARY_PATH=$prfx/lib fi # no point in --check-libs - we are running python and dynamically loading the libs # echo DYLD_FALLBACK_LIBRARY_PATH $DYLD_FALLBACK_LIBRARY_PATH export PATH=$prfx/bin:$PATH ccp4-python -m pyrogen "${@}"