Is it possible to update PATHs immediately after a module load call inside a modulefile. For the example shown below, a module named mymodule, the first call of module load mymodule will load conda but the following conda activate call will not work because path to conda exe is not found. The second call does the activate just fine, so what I am trying to achieve is to get the conda activate to work with one module load call. I've tried getting the path to the conda exe and calling conda activate with it, but didn't work.
The only thing that seems to work is to put them in two separate modulefiles.
#%Module
module load miniconda3
if { [module-info mode load] } {
puts "conda activate mywork;"
}
if {[module-info mode remove]} {
puts "conda deactivate;"
}
|