Mercurial > hgrepos > Python > libs > ConfigMix
diff configmix/__init__.py @ 107:2ee042791197
Don't read the first configuration file a second time.
Because of merging nothing bad happend with the old implementation.
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Sat, 24 Mar 2018 15:34:52 +0100 |
| parents | d6ba53ce2091 |
| children | 2196362c0467 |
line wrap: on
line diff
--- a/configmix/__init__.py Sat Mar 24 15:29:13 2018 +0100 +++ b/configmix/__init__.py Sat Mar 24 15:34:52 2018 +0100 @@ -36,7 +36,7 @@ return Configuration() else: ex = merge(None, _load_cfg_from_file(files[0])) - for f in files: + for f in files[1:]: ex = merge(_load_cfg_from_file(f), ex) return Configuration(ex)
