From 3d16604f37970c49080ab36c40e55bdc76785fb9 Mon Sep 17 00:00:00 2001 From: ac Date: Sat, 25 Nov 2023 21:09:36 +1000 Subject: [PATCH] Base the `ori` path of a sheet off of the `ori` path of the parent sheet. --- kibot/kicad/v6_sch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibot/kicad/v6_sch.py b/kibot/kicad/v6_sch.py index f0dcc1b2..b8477e00 100644 --- a/kibot/kicad/v6_sch.py +++ b/kibot/kicad/v6_sch.py @@ -1649,7 +1649,7 @@ class Sheet(object): self.sheet = sheet parent_dir = os.path.dirname(parent_file) sheet.sheet_path = path_join(parent_obj.sheet_path, self.uuid) - sheet.sheet_path_ori = path_join(parent_obj.sheet_path, self.uuid_ori) + sheet.sheet_path_ori = path_join(parent_obj.sheet_path_ori, self.uuid_ori) sheet.sheet_path_h = path_join(parent_obj.sheet_path_h, self.name) parent_obj.sheet_paths[sheet.sheet_path_ori] = sheet sheet.load(os.path.join(parent_dir, self.file), project, parent_obj)