Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fleur
firmware
Commits
9ce301dd
Verified
Commit
9ce301dd
authored
Aug 27, 2019
by
Rahix
Browse files
feat(preload): Make main.py a pointer to the default clock
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
091a1d73
Changes
1
Hide whitespace changes
Inline
Side-by-side
preload/main.py
0 → 100644
View file @
9ce301dd
import
os
def
main
():
# Try loading analog clock
default_app
=
"apps/analog_clock/__init__.py"
try
:
with
open
(
default_app
,
"r"
):
pass
print
(
"main.py: Loading "
+
default_app
)
os
.
exec
(
default_app
)
finally
:
os
.
exit
(
1
)
if
__name__
==
"__main__"
:
main
()
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment