Commit d5b7b3f7 authored by schneider's avatar schneider

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

parent 2fcfff13
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment