Hello,
Is there a good way to effectively run `module use ...` when unloading a modulefile? I am working on a modulefile that pivots from one modules environment to another, and I'm trying to unuse paths and replacing those by using others upon load, and then do the reverse when removing the modulefile. The command `module unuse <path>` doesn't get reversed, but `module use <path>` does.
I am using modules version 3.2.11. I did find an old thread from 2013 where `module unuse ...` not being changed to `module use ...` on unload was discussed, but it doesn't look like anything has changed in what I have tried inside the modulefile.
In this version of environment modules, is there a way to get `module use ...` to not be reversed on unload? Conversely, is there a way to get `module unuse ...` to be reversible? Would a later version of environment modules provide a solution that I'm not able to implement with this version of environment modules?
Thank you so much for any help and suggestions,
David
--
David Shrader
HPC-ENV High Performance Computing Systems
Los Alamos National Lab
|