List apps on sd
This commit is contained in:
parent
35583bf004
commit
35427b0db6
1 changed files with 36 additions and 29 deletions
|
|
@ -175,12 +175,19 @@ scaled_group.append(menu_title_txt)
|
||||||
|
|
||||||
app_titles = []
|
app_titles = []
|
||||||
apps = []
|
apps = []
|
||||||
app_path = pathlib.Path("/apps")
|
app_paths = (
|
||||||
|
pathlib.Path("/apps"),
|
||||||
|
pathlib.Path("/sd/apps")
|
||||||
|
)
|
||||||
|
|
||||||
pages = [{}]
|
pages = [{}]
|
||||||
|
|
||||||
cur_file_index = 0
|
cur_file_index = 0
|
||||||
|
|
||||||
|
for app_path in app_paths:
|
||||||
|
if not app_path.exists():
|
||||||
|
continue
|
||||||
|
|
||||||
for path in app_path.iterdir():
|
for path in app_path.iterdir():
|
||||||
print(path)
|
print(path)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue