diff options
author | Nao Pross <np@0hm.ch> | 2020-11-13 01:33:21 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2020-11-13 01:33:21 +0100 |
commit | 89d284fa5dbc921f4fb2695901fa7b678de3d01b (patch) | |
tree | fc8def35d4904d3ecce83c9b7dfef8f62e836117 /muddle.py | |
parent | Temporary fix for missing autotristate bug (diff) | |
download | Muddle-89d284fa5dbc921f4fb2695901fa7b678de3d01b.tar.gz Muddle-89d284fa5dbc921f4fb2695901fa7b678de3d01b.zip |
Load config data into config tab
Diffstat (limited to '')
-rw-r--r-- | muddle.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) |