Skip to content

Commit 03d3729

Browse files
committed
Create output dir before export. #30
1 parent 2d76f6d commit 03d3729

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/peakrdl_regblock/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.11.0"
1+
__version__ = "0.12.0"

src/peakrdl_regblock/exporter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ def export(self, node: Union[RootNode, AddrmapNode], output_dir:str, **kwargs: A
197197
}
198198

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

0 commit comments

Comments
 (0)