comparison configmix/__init__.py @ 269:7ef4362ca7c5

Docu
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 10 Sep 2020 09:27:34 +0200
parents 1484f6c0223a
children e73884fe060b
comparison
equal deleted inserted replaced
268:1484f6c0223a 269:7ef4362ca7c5
47 47
48 def load(*files, **kwargs): 48 def load(*files, **kwargs):
49 """Load the given configuration files, merge them in the given order 49 """Load the given configuration files, merge them in the given order
50 and return the resulting configuration dictionary. 50 and return the resulting configuration dictionary.
51 51
52 :param files: the filenames of the configuration files to read and merge 52 :param files: the filenames of the configuration files to read and merge;
53 if a filename starts with ``<dir>`` then the name is
54 interpreted as directory and all files are loaded in
55 sorted order (non-resursively, ignoring unknown filetypes)
53 :keyword defaults: optional configuration dictionary with some default 56 :keyword defaults: optional configuration dictionary with some default
54 settings where the settings from `files` are merged 57 settings where the settings from `files` are merged
55 into 58 into
56 :type defaults: dict-alike or None 59 :type defaults: dict-alike or None
57 :keyword extras: optional configuration dictionary that will applied 60 :keyword extras: optional configuration dictionary that will applied