From 3eae884dfed79ef2428a41368874940d062a669b Mon Sep 17 00:00:00 2001 From: New Future Date: Mon, 14 Jun 2021 12:07:17 +0000 Subject: [PATCH] default config file --- util/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/config.py b/util/config.py index 7575f39..7362148 100644 --- a/util/config.py +++ b/util/config.py @@ -57,7 +57,8 @@ def init_config(description, doc, version): is_configfile_optional = get_config("token") or get_config("id") config_file = get_config("config"); if not is_configfile_optional or config_file is not None: - __load_config(config_file, is_configfile_optional) + __load_config(config_file or "config.json", is_configfile_optional) + __cli_args.config = config_file or "config.json" def __load_config(path="config.json", skip_auto_generation=False):