From f61d9840691d80029e4be74bae67e47b16ece939 Mon Sep 17 00:00:00 2001 From: object-Object Date: Sat, 31 Aug 2024 14:50:43 -0400 Subject: [PATCH] Fix error if out directory doesn't exist --- noxfile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/noxfile.py b/noxfile.py index 833012d..d5f85ad 100644 --- a/noxfile.py +++ b/noxfile.py @@ -58,6 +58,7 @@ def scrape_book_types(session: nox.Session): session.install("-e", ".[runtime]", "--find-links=./vendor") tmp_file = Path("out/book_types.py") + tmp_file.parent.mkdir(parents=True, exist_ok=True) with tmp_file.open("w", encoding="utf-8") as f: session.run( "python",