changeset 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 b35837427a7a
children 2196362c0467
files configmix/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)