Skip to content

Commit 5c4d4b7

Browse files
committed
Fix log message of cmd set from env
1 parent 7553dbd commit 5c4d4b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easybuild/tools/modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ def __init__(self, mod_paths=None, testing=False):
184184
cmd_path = which(self.cmd, log_ok=False, log_error=False)
185185
# only use command path in environment variable if command in not available in $PATH
186186
if cmd_path is None:
187+
self.cmd = env_cmd_path
187188
self.log.debug("Set %s command via environment variable %s: %s",
188189
self.NAME, self.COMMAND_ENVIRONMENT, self.cmd)
189-
self.cmd = env_cmd_path
190190
# check whether paths obtained via $PATH and $LMOD_CMD are different
191191
elif cmd_path != env_cmd_path:
192192
self.log.debug("Different paths found for %s command '%s' via which/$PATH and $%s: %s vs %s",

0 commit comments

Comments
 (0)