mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-24 00:36:39 +00:00
Ensure schema dir exists
This commit is contained in:
1 parent
1d80530ef3
commit
e079bad12a
1 file changed
+3
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user