feat: create build directory if not existing

This commit is contained in:
Tim Grelka
2025-06-24 22:09:49 +02:00
parent 8171205abf
commit 4b06baa837
+2
View File
@@ -239,6 +239,8 @@ class Build:
file.write(result) file.write(result)
def build_edition(self, edition): def build_edition(self, edition):
self.config.p_build.mkdir(exist_ok=True)
edition = edition.upper() edition = edition.upper()
with (self.config.p_data / f"book_{edition}.json").open() as file: with (self.config.p_data / f"book_{edition}.json").open() as file: