Kenneth Hoste writes: > On 04/05/2020 03:33, Mike Kelsey wrote: > > Well, I have been successful in this! For my wrapper module, I implemented > > a very simple custom EasyBlock ("scdms_release.py"), which provides an extra > > EasyConfig parameter to specify the diretory, and overloads the base > > function make_module_dep(). [...] > Just one minor suggestion here: rather than using > self.module_generator.prepend_paths, I would use > self.module_generator.use instead, to inject "module use" commands (or > the equivalent) in the generated module file. > > It may not matter much in practice nowadays though, but it used to with > older versions of Lmod I think...
Sounds good. It also abstracts the action, instead of exposing the envvar directly. Also, I created a public issue for this (Framework #3323), to see whether there's interest in making this a global tool. -- Mike