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

Hooks in siteconfig.tcl to pass variables and procs to modulefile eval context #286

Closed
xdelaruelle opened this issue Aug 1, 2019 · 2 comments
Milestone

Comments

@xdelaruelle
Copy link
Member

Following this mailing-list discussion thread, it would be nice to have simple hooks to define Tcl variables and procedures from the siteconfig.tcl file and make these variables and procedures available in the modulefile evaluation context.

@nanobowers
Copy link
Contributor

Is this effectively a duplicate of #285 ? If not, how does it differ?

@xdelaruelle
Copy link
Member Author

Same goal but achieved differently potentially by different people:

  • Throught siteconfig.tcl a site admin would enable those procs or variables in modulefile evaluation context
  • With modulefile commands, a user could achieve same goal to manage his/her modulefiles

@xdelaruelle xdelaruelle added this to the 5.2 milestone Oct 31, 2022
xdelaruelle added a commit that referenced this issue Nov 1, 2022
Introduce hooks to define specific variables and commands for modulerc
interpreter context. It relies on variables defined in siteconfig.tcl
configuration file:

* modulerc_extra_vars is a list of variable name and value pairs
* modulerc_extra_cmds is a list of command name and procedure pairs

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

No branches or pull requests

2 participants