From b608222d2528fe2045487b8b9bbea3fb8a3a2c3a Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Sat, 3 Sep 2022 21:33:47 +0300 Subject: [PATCH] fix for broken image saving when using non-default directory --- modules/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui.py b/modules/ui.py index 72a0687c..ccca871a 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -84,7 +84,7 @@ def save_files(js_data, images): data = json.loads(js_data) - with open("log/log.csv", "a", encoding="utf8", newline='') as file: + with open(os.path.join(opts.outdir_save, "log.csv"), "a", encoding="utf8", newline='') as file: at_start = file.tell() == 0 writer = csv.writer(file) if at_start: