feat: create build directory if not existing
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user