diff --git a/preload/menu.py b/preload/menu.py index 944621328afbe2feef776d9168b88d638aec6418..06ae20f52f9de9508100c7349818d1a5bdf8d033 100644 --- a/preload/menu.py +++ b/preload/menu.py @@ -65,12 +65,14 @@ def list_apps(): # list all hatchary style apps (not .elf and not .py) # with or without metadata.json for appFolder in sorted(os.listdir("/apps")): - if not (appFolder.endswith(".py") or appFolder.endswith(".elf")): + if not (appFolder.endswith(".py") + or appFolder.endswith(".elf") + or appFolder.startswith("._")): apps.append(["/apps/%s/__init__.py" % appFolder, read_metadata(appFolder)]) # list simple python scripts for pyFile in sorted(os.listdir("/apps")): - if pyFile.endswith(".py"): + if pyFile.endswith(".py") and not pyFile.startswith("._"): apps.append( [ "/apps/%s" % pyFile, @@ -86,7 +88,7 @@ def list_apps(): # list simple elf binaries for elfFile in sorted(os.listdir("/apps")): - if elfFile.endswith(".elf"): + if elfFile.endswith(".elf") and not elfFile.startswith("._"): apps.append( [ "/apps/%s" % elfFile,