directory creation fix
This commit is contained in:
parent
5e6956c471
commit
c80805983f
1
dodo.py
1
dodo.py
@ -105,6 +105,7 @@ class RasterPatchwork(BasePatchwork):
|
|||||||
|
|
||||||
output = Image.frombytes(base.mode, base.size, bytes(mask()))
|
output = Image.frombytes(base.mode, base.size, bytes(mask()))
|
||||||
output.putpalette(base.palette)
|
output.putpalette(base.palette)
|
||||||
|
target.parent.mkdir(exist_ok=True, parents=True)
|
||||||
output.save(target)
|
output.save(target)
|
||||||
output.close()
|
output.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user