Skip to content

Commit

Permalink
default config file
Browse files Browse the repository at this point in the history
  • Loading branch information
NewFuture authored Jun 14, 2021
1 parent 98f83c5 commit 3eae884
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3eae884

Please sign in to comment.