Skip to content

Commit

Permalink
Create build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed May 3, 2024
1 parent 7f175fe commit 310ea04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pypi_index_builder/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def main():
env = Environment(loader=FileSystemLoader(settings.templates))
template = env.get_template("index.html")

settings.output.mkdir(parents=True, exist_ok=True)

with open(settings.output / "index.html", "w") as index_file:
index_file.write(template.render(index=index_data.keys()))

Expand Down

0 comments on commit 310ea04

Please sign in to comment.