Re: [Lmod-users] Hooking lmod methods
A Lua based environment module system that reads TCL modulefiles.
Brought to you by:
rtmclay
|
From: Ward P. <wpo...@gm...> - 2026-02-05 19:04:32
|
Hi Etienne, On Wed, Feb 4, 2026 at 10:45 AM <mal...@ci...> wrote: > This works like a charm (so it seems), but it is easy fora user to usnet the LMOD site package env variable and so its brittle. I think I'm goingto stay with SitePackage, but is there a wait to make the solution above work ? Or an alternative way of doing this whole "shenanigans". > I'm very much looking for advice or more conventional ways of doing that. The fact is that we have a lot of common things between our modules and wish to factorize. I'm not sure I understand what you try to achieve but the SitePackage.lua is quite reliable. We put it at /etc/lmod/SitePackage.lua where it gets picked up by Lmod. We've never seen issue with this, no matter how creative the users are. If you want to factor out thing, use the sandbox and register it as a custom function to use in a module file? Ward |