Skip to content

Commit

Permalink
Don't try to write absolute dirs on export
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Dec 17, 2024
1 parent 4774719 commit babf604
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fusesoc/capi2/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def export(self, dst_dir, flags={}):

dirs = list(set(map(os.path.dirname, src_files)))
for d in dirs:
os.makedirs(os.path.join(dst_dir, d), exist_ok=True)
if not os.path.isabs(d):
os.makedirs(os.path.join(dst_dir, d), exist_ok=True)

for f in src_files:
if f.startswith(".."):
Expand Down

0 comments on commit babf604

Please sign in to comment.