Create output dir before export. #30

This commit is contained in:
Alex Mykyta
2023-04-03 21:23:54 -07:00
parent 2d76f6d575
commit 03d3729ac3
2 changed files with 2 additions and 1 deletions

View File

@@ -1 +1 @@
__version__ = "0.11.0" __version__ = "0.12.0"

View File

@@ -197,6 +197,7 @@ class RegblockExporter:
} }
# Write out design # Write out design
os.makedirs(output_dir, exist_ok=True)
package_file_path = os.path.join(output_dir, package_name + ".sv") package_file_path = os.path.join(output_dir, package_name + ".sv")
template = self.jj_env.get_template("package_tmpl.sv") template = self.jj_env.get_template("package_tmpl.sv")
stream = template.stream(context) stream = template.stream(context)