Add files via upload

This commit is contained in:
gutosie
2024-08-08 08:45:20 +03:00
committed by GitHub
parent 81b43023a5
commit 968e73fe38

View File

@@ -65,6 +65,7 @@ class NBIChoose2(Screen):
self.onShow.append(self.updateInfo) self.onShow.append(self.updateInfo)
def updateInfo(self): def updateInfo(self):
self.list = []
pluginpath = '' + LinkNeoBoot + '' pluginpath = '' + LinkNeoBoot + ''
f = open(pluginpath + '/.location', 'r') f = open(pluginpath + '/.location', 'r')
mypath = f.readline().strip() mypath = f.readline().strip()
@@ -98,7 +99,7 @@ class NBIChoose2(Screen):
self['lab2'].setText(strview) self['lab2'].setText(strview)
imageslist = ['Flash'] imageslist = ['Flash']
for fn in listdir('' + getNeoLocation() + '/ImageBoot'): for fn in sorted(listdir('' + getNeoLocation() + '/ImageBoot'), key=lambda x: x.lower()):
dirfile = '' + getNeoLocation() + '/ImageBoot/' + fn dirfile = '' + getNeoLocation() + '/ImageBoot/' + fn
if os_isdir(dirfile): if os_isdir(dirfile):
imageslist.append(fn) imageslist.append(fn)