Ensure schema dir exists

This commit is contained in:
Oliver Walters committed 2026-11-12 06:21:50 +00:00
1 parent 1d80530ef3
commit e079bad12a
1 file changed
+3
+3
View File
@@ -65,6 +65,9 @@ def generate_schema_file(key: str, renderer: SchemaRenderer, paths: dict) -> Non
print('Writing schema file to:', output_file)
# Generated pages are not tracked in git, so the directory may not exist yet
os.makedirs(os.path.dirname(output_file), exist_ok=True)
with open(output_file, 'w', encoding='utf-8') as f:
f.write(output)