From 2581c84d093ebacb4cbd838ab0003ac2af76351b Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Thu, 23 Nov 2023 10:19:02 -0300 Subject: [PATCH] [Copy Files][Fixed] Missing KiConf initialization Could make 3d_models copy fail to detect subdirs --- kibot/out_copy_files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kibot/out_copy_files.py b/kibot/out_copy_files.py index 26175447..fbb8fd9c 100644 --- a/kibot/out_copy_files.py +++ b/kibot/out_copy_files.py @@ -158,6 +158,8 @@ class Copy_FilesOptions(Base3DOptions): files = [] src_dir_cwd = os.getcwd() src_dir_outdir = self.expand_filename_sch(GS.out_dir) + # Initialize the config class so we can know where are the 3D models at system level + KiConf.init(GS.pcb_file) self.rel_dirs = [] if KiConf.models_3d_dir: self.rel_dirs.append(os.path.normpath(os.path.join(GS.pcb_dir, KiConf.models_3d_dir)))