Skip to content

Commit 35d5dc9

Browse files
committed
Open from directory: update group naming to use relative path instead of base name
1 parent 710634d commit 35d5dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cdl/core/gui/panel/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ def load_from_directory(self, directory: str | None = None) -> list[TypeObj]:
936936
)
937937
if new_objs:
938938
objs += new_objs
939-
grp = self.add_group(osp.basename(path))
939+
grp = self.add_group(osp.relpath(path, directory))
940940
for obj in new_objs:
941941
self.add_object(obj, group_id=grp.uuid, set_current=False)
942942
return objs

0 commit comments

Comments
 (0)