Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pete
firmware
Commits
abfeb457
Commit
abfeb457
authored
5 years ago
by
Peter Eckel
Browse files
Options
Downloads
Patches
Plain Diff
Ignore macOS meta files in menu.py
parent
2c60241a
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#2855
failed
5 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
preload/menu.py
+5
-3
5 additions, 3 deletions
preload/menu.py
with
5 additions
and
3 deletions
preload/menu.py
+
5
−
3
View file @
abfeb457
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment