mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
reuse variable for log file path
This commit is contained in:
parent
a75dfe1c0d
commit
315e40a49c
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user