Skip to content

Commit 93fdcf4

Browse files
committed
take into account optional leading whitespace in module-version statement in Tcl syntax in ModulesTool.module_wrapper_exists method
1 parent 69cf80e commit 93fdcf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

easybuild/tools/modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def module_wrapper_exists(self, mod_name, modulerc_fn='.modulerc', mod_wrapper_r
464464
Only .modulerc file in Tcl syntax is considered here.
465465
"""
466466
if mod_wrapper_regex_template is None:
467-
mod_wrapper_regex_template = "^module-version (?P<wrapped_mod>[^ ]*) %s$"
467+
mod_wrapper_regex_template = "^[ ]*module-version (?P<wrapped_mod>[^ ]*) %s$"
468468

469469
wrapped_mod = None
470470

0 commit comments

Comments
 (0)