fix for broken image saving when using non-default directory
This commit is contained in:
parent
657074a73d
commit
b608222d25
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user