Skip to content

Commit

Permalink
Fixes lanjelot#120
Browse files Browse the repository at this point in the history
  • Loading branch information
lanjelot committed Oct 17, 2019
1 parent e539ab5 commit 3135ea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patator.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,8 +765,8 @@ def process_logs(queue, indicatorsfmt, argv, log_dir, runtime_file):

names = [name for name, _ in indicatorsfmt] + ['candidate', 'num', 'mesg']

if runtime_file:
runtime_log = os.path.join(log_dir if log_dir else './', runtime_file)
if runtime_file or log_dir:
runtime_log = os.path.join(log_dir or '', runtime_file or 'RUNTIME.log')

with open(runtime_log, 'a') as f:
f.write('$ %s\n' % ' '.join(argv))
Expand Down

0 comments on commit 3135ea1

Please sign in to comment.