mirror of
https://github.com/nicbarker/clay.git
synced 2026-02-06 12:48:49 +00:00
small fixes
This commit is contained in:
parent
f4933c6669
commit
38bb241ced
3 changed files with 3 additions and 2 deletions
|
|
@ -37,6 +37,7 @@ class BaseGenerator:
|
|||
|
||||
def write_outputs(self, output_dir: Path) -> None:
|
||||
for file_name, content in self.output_content.items():
|
||||
(output_dir / file_name).parent.mkdir(parents=True, exist_ok=True)
|
||||
with open(output_dir / file_name, 'w') as f:
|
||||
f.write("\n".join(content))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue