aboutsummaryrefslogtreecommitdiffstats
path: root/muddle.py
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2020-11-13 01:33:21 +0100
committerNao Pross <np@0hm.ch>2020-11-13 01:33:21 +0100
commit89d284fa5dbc921f4fb2695901fa7b678de3d01b (patch)
treefc8def35d4904d3ecce83c9b7dfef8f62e836117 /muddle.py
parentTemporary fix for missing autotristate bug (diff)
downloadMuddle-89d284fa5dbc921f4fb2695901fa7b678de3d01b.tar.gz
Muddle-89d284fa5dbc921f4fb2695901fa7b678de3d01b.zip
Load config data into config tab
Diffstat (limited to 'muddle.py')
-rw-r--r--muddle.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/muddle.py b/muddle.py
index b1dc7f1..c7adbab 100644
--- a/muddle.py
+++ b/muddle.py
@@ -117,6 +117,10 @@ log.debug(f"reading config file {config_file}")
config = configparser.ConfigParser()
config.read(config_file)
+# runtime data that should NOT be written
+config.add_section("runtime_data")
+config["runtime_data"]["config_path"] = str(config_file)
+
# S T A R T
@@ -129,5 +133,5 @@ are welcome to redistribute it under certain conditions; see LICENSE.txt for
details. Project repository: https://github.com/NaoPross/Muddle
""")
-if args.gui:
- gui.start(config["server"]["url"], config["server"]["token"])
+if args.gui or config.getboolean("muddle", "always_run_gui"):
+ gui.start(config)