Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Commit 2437aba

Browse files
committed
Use ilistdir, to also work on emu
1 parent df8cb4d commit 2437aba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

esp32/modules/launcher.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,20 @@
1717
ugfx.line(160, 72, 174 + str_len, 72, ugfx.BLACK)
1818
ugfx.line(170 + str_len, 52, 170 + str_len, 70, ugfx.BLACK)
1919
ugfx.string(170,75,"Anyway","Roboto_BlackItalic24",ugfx.BLACK)
20+
ugfx.string(230,100,"OTA","PermanentMarker22",ugfx.BLACK)
2021

2122
options = ugfx.List(0,0,int(ugfx.width()/2),ugfx.height())
2223

2324
try:
24-
apps = os.listdir('lib')
25+
apps = os.ilistdir('lib')
2526
except OSError:
2627
apps = []
2728

28-
apps.extend(['installer'])
29-
3029
for app in apps:
3130
options.add_item(app)
3231

32+
options.add_item("installer")
33+
3334
def run_it(pushed):
3435
if (pushed):
3536
selected = options.selected_index()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy