Skip to content

Commit

Permalink
Check for Lmod command in LMOD_CMD env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTheBear committed Nov 21, 2023
1 parent 246fd5d commit 0d72fb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions machinestate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2981,6 +2981,8 @@ def __init__(self, extended=False, anonymous=False, modulecmd="modulecmd"):
super(ModulesInfo, self).__init__(name="ModulesInfo",
extended=extended,
anonymous=anonymous)
if os.getenv("LMOD_CMD"):
modulecmd = os.getenv("LMOD_CMD")
self.modulecmd = modulecmd
parse = ModulesInfo.parsemodules
cmd_opts = "sh -t list 2>&1"
Expand Down

0 comments on commit 0d72fb9

Please sign in to comment.