Skip to content
Snippets Groups Projects
Commit d5b7b3f7 authored by schneider's avatar schneider
Browse files

feat(main.py): Read the default application from the config file

parent 2fcfff13
No related branches found
No related tags found
1 merge request!375Default main app selector
......@@ -3,7 +3,13 @@ import os
def main():
# Try loading analog clock
default_app = "apps/analog_clock/__init__.py"
try:
import config
default_app = config.get_string("default_app")
except OSError:
default_app = "apps/analog_clock/__init__.py"
try:
with open(default_app, "r"):
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment