Skip to content

Commit

Permalink
Fix TMod31 detection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Blanca Fuentes Monjas committed Nov 29, 2024
1 parent f155d56 commit ba162f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion reframe/core/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,12 @@ def __init__(self):

def _do_validate(self):
# Try to figure out if we are indeed using the TCL version
modulecmd = os.getenv('MODULESHOME')
if modulecmd is None:
raise ConfigError(
f'could not find a sane TMod31 installation: {e}'
)
try:
modulecmd = os.getenv('MODULESHOME')
modulecmd = os.path.join(modulecmd, 'modulecmd.tcl')
completed = osext.run_command(modulecmd)
except OSError as e:
Expand Down

0 comments on commit ba162f4

Please sign in to comment.