From c80805983fcf19e3d90c77e9f502a3dc974cf2e4 Mon Sep 17 00:00:00 2001 From: Aleksey Date: Fri, 1 Dec 2023 01:06:10 +0400 Subject: [PATCH] directory creation fix --- dodo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dodo.py b/dodo.py index fc53544..3c4556d 100644 --- a/dodo.py +++ b/dodo.py @@ -105,6 +105,7 @@ class RasterPatchwork(BasePatchwork): output = Image.frombytes(base.mode, base.size, bytes(mask())) output.putpalette(base.palette) + target.parent.mkdir(exist_ok=True, parents=True) output.save(target) output.close()