Skip to content

Commit

Permalink
Create output dir before export. #30
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Apr 4, 2023
1 parent 2d76f6d commit 03d3729
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/peakrdl_regblock/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.11.0"
__version__ = "0.12.0"
1 change: 1 addition & 0 deletions src/peakrdl_regblock/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ def export(self, node: Union[RootNode, AddrmapNode], output_dir:str, **kwargs: A
}

# Write out design
os.makedirs(output_dir, exist_ok=True)
package_file_path = os.path.join(output_dir, package_name + ".sv")
template = self.jj_env.get_template("package_tmpl.sv")
stream = template.stream(context)
Expand Down

0 comments on commit 03d3729

Please sign in to comment.