From c588187ae35cb3c414668e9f96f44c27455d5960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Tue, 3 Oct 2023 00:08:26 +0200 Subject: [PATCH] Fix directory creation on re-render. --- scripts/blog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/blog.py b/scripts/blog.py index 9ba6cd0..f80dd02 100644 --- a/scripts/blog.py +++ b/scripts/blog.py @@ -573,7 +573,7 @@ def main(source_top, dest_top): docs[filepath] = (doc, front_matter, out_path) doc_full_path = os.path.join(dest_top, out_path) print("Updated: {}.html".format(doc_full_path)) - os.makedirs(os.path.dirname(doc_full_path), exist_ok=True) + os.makedirs(os.path.dirname(doc_full_path + '/index.html'), exist_ok=True) # print("==", doc_full_path) with open(doc_full_path + '/index.html', 'wt') as f: try: