Skip to content

Commit df371cb

Browse files
committed
replace use of run_cmd with run_shell_cmd in modules.py
1 parent 51159bf commit df371cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

easybuild/tools/modules.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,8 @@ def check_module_function(self, allow_mismatch=False, regex=None):
13581358
out, ec = None, 1
13591359
else:
13601360
cmd = "type _module_raw"
1361-
out, ec = run_cmd(cmd, simple=False, log_ok=False, log_all=False, force_in_dry_run=True, trace=False)
1361+
res = run_shell_cmd(cmd, fail_on_error=False, in_dry_run=False, hidden=True, output_file=False)
1362+
out, ec = res.output, res.exit_code
13621363

13631364
if regex is None:
13641365
regex = r".*%s" % os.path.basename(self.cmd)

0 commit comments

Comments
 (0)