mirror of
https://github.com/aclist/dztui.git
synced 2026-10-25 12:12:31 +01:00
fix: handle missing grid directory
This commit is contained in:
1 parent
c2cfe2b4d9
commit
019847dcf9
1 file changed
+1
@@ -111,6 +111,7 @@ class Shortcuts:
|
|||||||
for img in ("_hero", "p", "_logo"):
|
for img in ("_hero", "p", "_logo"):
|
||||||
filename = str(self.bpid) + img
|
filename = str(self.bpid) + img
|
||||||
dest = grid_path.joinpath(filename).with_suffix(".png")
|
dest = grid_path.joinpath(filename).with_suffix(".png")
|
||||||
|
make_parents(dest)
|
||||||
b = images.joinpath(img).with_suffix(".png").read_bytes()
|
b = images.joinpath(img).with_suffix(".png").read_bytes()
|
||||||
dest.write_bytes(b)
|
dest.write_bytes(b)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user