diff --git a/scripts/autobbappend/autobbappend.py b/scripts/autobbappend/autobbappend.py index 08b8f121b7d1a34b66107e75ad962e1f6f6b0bce..e8cc796725da83c3d5a118a9751e822a6f6b923e 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'