Skip to content

Commit ba162f4

Browse files
author
Blanca Fuentes Monjas
committed
Fix TMod31 detection bug
1 parent f155d56 commit ba162f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

reframe/core/modules.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,12 @@ def __init__(self):
747747

748748
def _do_validate(self):
749749
# Try to figure out if we are indeed using the TCL version
750+
modulecmd = os.getenv('MODULESHOME')
751+
if modulecmd is None:
752+
raise ConfigError(
753+
f'could not find a sane TMod31 installation: {e}'
754+
)
750755
try:
751-
modulecmd = os.getenv('MODULESHOME')
752756
modulecmd = os.path.join(modulecmd, 'modulecmd.tcl')
753757
completed = osext.run_command(modulecmd)
754758
except OSError as e:

0 commit comments

Comments
 (0)