From ac51c9ae61833b7b11e4fe07a0d6c58a58c9dbad Mon Sep 17 00:00:00 2001 From: caohongtao Date: Tue, 24 Oct 2023 13:55:28 +0800 Subject: [PATCH] Solve two problems Signed-off-by: caohongtao --- scripts/autobbappend/autobbappend.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/autobbappend/autobbappend.py b/scripts/autobbappend/autobbappend.py index 08b8f121b7d..e8cc796725d 100644 --- a/scripts/autobbappend/autobbappend.py +++ b/scripts/autobbappend/autobbappend.py @@ -37,8 +37,8 @@ def search_files(rootDir,filepathmsg,filetype): if j in apathname: filepathresult.append(apath) for i in sorted(filepathresult): - if not i.endswith(tuple(filetype)): - filepathresult.remove(i) + if not i.endswith(tuple(filetype)): + filepathresult.remove(i) if len(filepathresult) == 0: dir = None if len(filepathresult) == 1: @@ -381,7 +381,7 @@ class BuildData: BP = '${BP}', BPN = '${BPN}', )) - + template_file.close() # Write code to file if not os.path.exists(bbappend:path):os.makedirs(bbappend:path) filePath = bbappend:path+'/'+bpn+'_%.bbappend' -- Gitee