From 572bfe7c3f6096d75a8b8fef68b88539976c3917 Mon Sep 17 00:00:00 2001 From: Guangcheng Chen <31801020+GCChen97@users.noreply.github.com> Date: Sat, 2 Nov 2024 23:34:45 +0800 Subject: [PATCH] Fix the FileNotFoundError bug in export.py --- infinigen/tools/export.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/infinigen/tools/export.py b/infinigen/tools/export.py index 654eb863..e7060544 100644 --- a/infinigen/tools/export.py +++ b/infinigen/tools/export.py @@ -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