X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/d841942af9debd51e45a44a6df6a7ca2339c1cc3..d28d65fa09cf76015ebfd65ec9485c8bdd108b22:/tools/config/load.py diff --git a/tools/config/load.py b/tools/config/load.py index 87a1757..12978d3 100644 --- a/tools/config/load.py +++ b/tools/config/load.py @@ -32,26 +32,6 @@ def load(args): return cfg -def load_session(): - config_path = tools.config.session_defaults["config_path"] - cfg = configparser.ConfigParser() - if os.path.isfile(config_path): - cfg.read(config_path) - - if "session" not in cfg: - cfg["session"] = {} - - for key in tools.config.session_defaults: - if key in tools.config.session_config_keys and key not in cfg["session"]: - cfg["session"][key] = str(tools.config.session_defaults[key]) - - if key not in tools.config.session_config_keys and key in cfg["session"]: - logging.debug("Ignored unconfigurable and possibly outdated" - " default value from config: {}".format(cfg['session'][key])) - del cfg["session"][key] - - return cfg - def load_channels(): config_path = tools.config.channels_defaults["config_path"] cfg = configparser.ConfigParser()