Skip to content

Commit

Permalink
Fix the FileNotFoundError bug in export.py
Browse files Browse the repository at this point in the history
  • Loading branch information
GCChen97 authored Nov 2, 2024
1 parent 4a7dc1a commit 572bfe7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions infinigen/tools/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,9 +956,10 @@ def export_curr_scene(
):
continue

export_subfolder = export_folder / obj.name
export_subfolder.mkdir(exist_ok=True)
export_file = export_subfolder / f"{obj.name}.{format}"
obj_name = obj.name.replace('/', '_')
export_subfolder = export_folder / obj_name
export_subfolder.mkdir(exist_ok=True, parents=True)
export_file = export_subfolder / f"{obj_name}.{format}"

logging.info(f"Exporting file to {export_file=}")
obj.hide_viewport = False
Expand Down

1 comment on commit 572bfe7

@GCChen97
Copy link
Contributor Author

@GCChen97 GCChen97 commented on 572bfe7 Nov 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bug was reported issues/360.

Please sign in to comment.