Skip to content

Commit

Permalink
fix: have includes create parent folder structure if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
fritz-astronomer committed Nov 7, 2024
1 parent 759795f commit 512877f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions orbiter/objects/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ def render(self, output_dir: Path) -> None:
for include in self.includes.values():
include_path = output_dir / include.filepath
logger.info(f"Writing {include_path}")
include_path.parent.mkdir(parents=True, exist_ok=True)
include_path.write_text(include.render())
else:
logger.debug("No files to include")
Expand Down

0 comments on commit 512877f

Please sign in to comment.