Skip to content
Snippets Groups Projects
Commit abfeb457 authored by Peter Eckel's avatar Peter Eckel
Browse files

Ignore macOS meta files in menu.py

parent 2c60241a
Branches
No related tags found
No related merge requests found
Pipeline #2855 failed
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment