aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArturo Albacete <aalbacetef@gmail.com>2024-01-16 19:11:28 +0100
committerArturo Albacete <aalbacetef@gmail.com>2024-01-16 19:11:28 +0100
commit315e40a49c32438551ed6b66138acdf664ecdbc8 (patch)
tree5b9ec4176cb2f1970fc5bd2cf3ba3baaefb74ef4
parenta75dfe1c0de1564f4607a6f4ed7f4a7c00ef18a0 (diff)
reuse variable for log file path
-rw-r--r--modules/ui_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui_common.py b/modules/ui_common.py
index cbb2495d..1db72092 100644
--- a/modules/ui_common.py
+++ b/modules/ui_common.py
@@ -107,7 +107,7 @@ def save_files(js_data, images, do_make_zip, index):
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: