diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-03 21:33:47 +0300 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-03 21:33:47 +0300 |
commit | b608222d2528fe2045487b8b9bbea3fb8a3a2c3a (patch) | |
tree | bb8c712f1dc1776e5bd88ad3620db7cdc5656ad7 /modules | |
parent | 657074a73deb2b1b4ac723bf3b16769770fd2931 (diff) |
fix for broken image saving when using non-default directory
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
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:
|