confini

Parse and merge multiple ini files in python3
git clone git://git.defalsify.org/python-confini.git
Log | Files | Refs | README | LICENSE

commit 16df29907891de563cee97ba50f696102e636ccd
parent 742556837cb59de5f275d73f8c15b7b2b1291042
Author: lash <dev@holbrook.no>
Date:   Fri, 24 Jun 2022 10:02:55 +0000

Handle schema dir input as list

Diffstat:
Mconfini/config.py | 5++++-
Msetup.py | 2+-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/confini/config.py b/confini/config.py @@ -46,7 +46,10 @@ class Config: logg.info('using prefix {} for environment variable override matches'.format(env_prefix)) self.env_prefix = '{}_'.format(env_prefix) - self.add_schema_dir(default_dir) + if isinstance(default_dir, str): + default_dir = [default_dir] + for v in default_dir: + self.add_schema_dir(v) self.__target_tmpdir = None diff --git a/setup.py b/setup.py @@ -6,7 +6,7 @@ f.close() setup( name='confini', - version='0.6.1', + version='0.6.2', description='Parse, verify and merge all ini files in a single directory', author='Louis Holbrook', author_email='dev@holbrook.no',