Skip to content
Snippets Groups Projects
Commit 57cb76ed authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: more f-strings

parent 798eff59
No related branches found
No related tags found
No related merge requests found
......@@ -50,8 +50,8 @@ env['PYTHONPATH'] = op.join(op.dirname(fsl.__file__), '..')
cmd = op.basename(args[0])
jobid = random.randint(1, 9999)
with open(f'{{cmd}}.o{{jobid}}', 'w') as stdout, \
open(f'{{cmd}}.e{{jobid}}', 'w') as stderr:
with open('{{}}.o{{}}'.format(cmd, jobid), 'w') as stdout, \
open('{{}}.e{{}}'.format(cmd, jobid), 'w') as stderr:
result = sp.run(args, stdout=stdout, stderr=stderr, env=env)
print(str(jobid))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment