Skip to content

Commit

Permalink
reuse variable for log file path
Browse files Browse the repository at this point in the history
  • Loading branch information
aalbacetef committed Jan 16, 2024
1 parent a75dfe1 commit 315e40a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ui_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def __init__(self, d=None):
if os.path.exists(logfile_path):
update_logfile(logfile_path, fields)

with open(os.path.join(shared.opts.outdir_save, "log.csv"), "a", encoding="utf8", newline='') as file:
with open(logfile_path, "a", encoding="utf8", newline='') as file:
at_start = file.tell() == 0
writer = csv.writer(file)
if at_start:
Expand Down

0 comments on commit 315e40a

Please sign in to comment.