Files
MX_Pmodule/Programming/anaconda/files/admintools/conda_setup.sh
bliven_s 308fd1c890 CrYOLO/1.6.1 modules
There are _cpu and _gpu flags available, which are selected based on
fancy modulefile code (Thanks Achim)
2020-07-15 16:57:12 +02:00

15 lines
430 B
Bash

# simulate `conda init` type hook
# Expects CONDA_EXE and CONDA_PREFIX to be set
__conda_setup="$("${CONDA_EXE:-conda}" 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "${CONDA_PREFIX:?CONDA_PREFIX not set}/etc/profile.d/conda.sh" ]; then
. "${CONDA_PREFIX}/etc/profile.d/conda.sh"
else
export PATH="${CONDA_PREFIX}/bin:$PATH"
fi
fi
unset __conda_setup