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
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
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
card10
firmware
Commits
dbd06c92
Commit
dbd06c92
authored
5 years ago
by
Dominik Wagner
Committed by
rahix
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(menu): Exclude files starting with a .
parent
2c60241a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
preload/menu.py
+7
-3
7 additions, 3 deletions
preload/menu.py
with
7 additions
and
3 deletions
preload/menu.py
+
7
−
3
View file @
dbd06c92
...
...
@@ -62,14 +62,18 @@ def list_apps():
]
)
dirlist
=
[
entry
for
entry
in
sorted
(
os
.
listdir
(
"
/apps
"
))
if
not
entry
.
startswith
(
"
.
"
)
]
# list all hatchary style apps (not .elf and not .py)
# with or without metadata.json
for
appFolder
in
sorted
(
os
.
listdir
(
"
/apps
"
))
:
for
appFolder
in
dirlist
:
if
not
(
appFolder
.
endswith
(
"
.py
"
)
or
appFolder
.
endswith
(
"
.elf
"
)):
apps
.
append
([
"
/apps/%s/__init__.py
"
%
appFolder
,
read_metadata
(
appFolder
)])
# list simple python scripts
for
pyFile
in
sorted
(
os
.
listdir
(
"
/apps
"
))
:
for
pyFile
in
dirlist
:
if
pyFile
.
endswith
(
"
.py
"
):
apps
.
append
(
[
...
...
@@ -85,7 +89,7 @@ def list_apps():
)
# list simple elf binaries
for
elfFile
in
sorted
(
os
.
listdir
(
"
/apps
"
))
:
for
elfFile
in
dirlist
:
if
elfFile
.
endswith
(
"
.elf
"
):
apps
.
append
(
[
...
...
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