Skip to content

Commit

Permalink
Merge branch 'main' into clear_output
Browse files Browse the repository at this point in the history
  • Loading branch information
lord-haffi authored Dec 4, 2023
2 parents 54d5db1 + 22dfede commit f6ccf5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bo4e_generator/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def generate_bo4e_schemas(
file_contents[Path("__init__.py")] = bo4e_init_file_content(namespace, version)
if clear_output and output_directory.exists():
shutil.rmtree(output_directory)

for relative_file_path, file_content in file_contents.items():
file_path = output_directory / relative_file_path
file_path.parent.mkdir(parents=True, exist_ok=True)
Expand Down

0 comments on commit f6ccf5a

Please sign in to comment.