Skip to content

Commit 310ea04

Browse files
committed
Create build directory
1 parent 7f175fe commit 310ea04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pypi_index_builder/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ def main():
1919
env = Environment(loader=FileSystemLoader(settings.templates))
2020
template = env.get_template("index.html")
2121

22+
settings.output.mkdir(parents=True, exist_ok=True)
23+
2224
with open(settings.output / "index.html", "w") as index_file:
2325
index_file.write(template.render(index=index_data.keys()))
2426

0 commit comments

Comments
 (0)