From 46c1ff5dd1c8b522446be55bc985f29a0f436f55 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Thu, 23 Nov 2023 10:50:33 -0300 Subject: [PATCH] [Copy Files][Fixed] Warnings when using the STEP and WRL files The code tried to add their counterpart, that was already used, generating a repetition --- kibot/out_copy_files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kibot/out_copy_files.py b/kibot/out_copy_files.py index fbb8fd9c..b7e4df94 100644 --- a/kibot/out_copy_files.py +++ b/kibot/out_copy_files.py @@ -146,11 +146,11 @@ class Copy_FilesOptions(Base3DOptions): for fn in files_list: if fn.endswith('.wrl'): fn = fn[:-4]+'.step' - if os.path.isfile(fn): + if os.path.isfile(fn) and fn not in files_list: new_list.append(fn) elif fn.endswith('.step'): fn = fn[:-5]+'.wrl' - if os.path.isfile(fn): + if os.path.isfile(fn) and fn not in files_list: new_list.append(fn) return files_list+fnmatch.filter(new_list, f.source)