Create output dir before export. #30
This commit is contained in:
@@ -1 +1 @@
|
|||||||
__version__ = "0.11.0"
|
__version__ = "0.12.0"
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user