output_folder fix
This commit is contained in:
parent
61f83dd7e4
commit
9ccb251801
@ -44,7 +44,7 @@ def main(args):
|
||||
title = row[1]['title'].replace("Strona:", "").replace("/", "-")
|
||||
image.save(f"{args.output_folder}/{title}.png")
|
||||
|
||||
if round(sum(os.path.getsize(f"./images/{file}") for file in os.listdir("./images")) * 0.000001, 2) > args.max_folder_size_mb:
|
||||
if round(sum(os.path.getsize(f"./{args.output_folder}/{file}") for file in os.listdir(f"./{args.output_folder}")) * 0.000001, 2) > args.max_folder_size_mb:
|
||||
print(f"Limit size of: {args.max_folder_size_mb}, exceeded")
|
||||
save_state(n, offset)
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user