File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22# Prints the environment variables set by 'conda activate $1', for processing by the modules
33export PATH=/usr/bin:/bin
4+ export MAMBA_ROOT_PREFIX=" ${1} "
45eval " $( " ${1} " /bin/micromamba shell hook -s bash ) "
56micromamba activate " ${2} "
67/bin/env
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ function construct_module_insert() {
134134 module_path=" ${9} "
135135
136136 declare -a discard_paths=( " /bin" " /usr/bin" " /condabin" )
137- declare -a discard_vars=( " MODULEPATH" " _" " PWD" " SHLVL" )
137+ declare -a discard_vars=( " MODULEPATH" " _" " PWD" " SHLVL" " MAMBA_ROOT_PREFIX " )
138138
139139 while read line; do
140140 key=" ${line%% =* } "
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ source functions.sh
1515export OVERLAY_BASE=" ${CONDA_TEMP_PATH} " /overlay
1616export CONDA_OUTER_BASE=" ${OVERLAY_BASE} " /" ${CONDA_BASE#/*/ } "
1717export CONDA_INSTALLATION_PATH=${CONDA_INSTALLATION_PATH:- ${CONDA_BASE} / ./ ${APPS_SUBDIR} / ${CONDA_INSTALL_BASENAME} }
18+ export MAMBA_ROOT_PREFIX=" ${CONDA_INSTALLATION_PATH} "
1819
1920function inner() {
2021
You can’t perform that action at this time.
0 commit comments