Fix config file reloading not working is a system config file is set and no user config file is present at startup

Fixes #6801
This commit is contained in:
Kovid Goyal
2023-11-13 01:02:02 +05:30
parent 2047ea8eec
commit 9a08489112
5 changed files with 12 additions and 5 deletions

View File

@@ -337,9 +337,10 @@ You can parse and read the options in your kitten using the following code:
return ans
overrides = tuple(overrides) if overrides is not None else ()
opts_dict, paths = _load_config(defaults, parse_config, merge_result_dicts, *paths, overrides=overrides)
opts_dict, found_paths = _load_config(defaults, parse_config, merge_result_dicts, *paths, overrides=overrides)
opts = Options(opts_dict)
opts.config_paths = paths
opts.config_paths = found_paths
opts.all_config_paths = paths
opts.config_overrides = overrides
return opts