Skip to content

Commit 121e199

Browse files
committed
don't use f-string for path to output files since there are no placeholders in run_shell_cmd
1 parent 95bd45e commit 121e199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/tools/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@ def to_cmd_str(cmd):
231231
toptmpdir = os.path.join(tempfile.gettempdir(), 'run-shell-cmd-output')
232232
os.makedirs(toptmpdir, exist_ok=True)
233233
tmpdir = tempfile.mkdtemp(dir=toptmpdir, prefix=f'{cmd_name}-')
234-
cmd_out_fp = os.path.join(tmpdir, f'out.txt')
234+
cmd_out_fp = os.path.join(tmpdir, 'out.txt')
235235
_log.info(f'run_cmd: Output of "{cmd_str}" will be logged to {cmd_out_fp}')
236236
if split_stderr:
237-
cmd_err_fp = os.path.join(tmpdir, f'err.txt')
237+
cmd_err_fp = os.path.join(tmpdir, 'err.txt')
238238
_log.info(f'run_cmd: Errors and warnings of "{cmd_str}" will be logged to {cmd_err_fp}')
239239
else:
240240
cmd_err_fp = None

0 commit comments

Comments
 (0)