Commit 315e40a4 authored by Arturo Albacete's avatar Arturo Albacete

reuse variable for log file path

parent a75dfe1c
...@@ -107,7 +107,7 @@ def save_files(js_data, images, do_make_zip, index): ...@@ -107,7 +107,7 @@ def save_files(js_data, images, do_make_zip, index):
if os.path.exists(logfile_path): if os.path.exists(logfile_path):
update_logfile(logfile_path, fields) 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 at_start = file.tell() == 0
writer = csv.writer(file) writer = csv.writer(file)
if at_start: if at_start:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment