Skip to content
Snippets Groups Projects
cmi_changer.sh 572 B
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
BASE="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"

unset LD_LIBRARY_PATH
unset LD_PRELOAD
unset PYTHONPATH

test -z "$PYTHON" && export PYTHON=$BASE/ShellB3/bin/python3

# ref https://gitlab.ssec.wisc.edu/cspp_geo/cspp-geo-aitf/issues/154
# https://support.hdfgroup.org/ftp/HDF5/current/src/unpacked/release_docs/RELEASE.txt
# specifically HDF5 1.10 and network filesystems (e.g. Lustre)
export HDF5_USE_FILE_LOCKING=FALSE 

exec $PYTHON -m goesr.cmi_changer "$@"