Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand environment variables in file pointed at by LMOD_MODULEPATH_INIT #720

Open
runiq opened this issue Aug 1, 2024 · 1 comment
Open

Comments

@runiq
Copy link

runiq commented Aug 1, 2024

We currently have most of our Lmod config on a shared filesystem /shared/etc/lmod, so we can change the config without having to rebuild our node images. This also works with the initial modulepath, because we have $LMOD_MODULEPATH_INIT point at /shared/etc/lmod/modulepath.

Unfortunately, the file pointed at by $LMOD_MODULEPATH_INIT doesn't allow expansion of environment variables, which would be valuable for adding module hierarchies in users' home directories.

Would you consider adding environment variable support for the $LMOD_MODULEPATH_INIT file, for example by using envsubst (from the gettext software)?

@rtmclay
Copy link
Member

rtmclay commented Aug 1, 2024

I will consider it but I'd like you to create a PR to show what you want. Make sure that it works when envsubst is not in $PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants