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