mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-03 04:35:47 +01:00
Add files via upload
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user