Skip to content
Snippets Groups Projects
Commit 7c7a114a authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[Transform] remove IP stitching proj during cleanup

parent 1b0aa1f5
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,11 @@ class CleanUp(Transformation):
super().__init__()
def apply(self, model):
# delete IP stitching project, if any
ipstitch_path = model.get_metadata_prop("vivado_proj")
if ipstitch_path is not None and os.path.isdir(ipstitch_path):
shutil.rmtree(ipstitch_path)
model.set_metadata_prop("vivado_proj", "")
for node in model.graph.node:
op_type = node.op_type
if node.domain == "finn":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment