1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#!/bin/bash
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
# need to add rdkit dlls (in lib)
if [[ "$systype" == MINGW* ]] ; then
PATH=$prfx/lib:$PATH
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
@PYTHON@ -m pyrogen "${@}"
|