HBNetwork / python-decouple

Strict separation of config from code.
MIT License
2.83k stars 196 forks source link

Allow specification of optional config filenames to look for #70

Closed kristleifur closed 5 years ago

kristleifur commented 6 years ago

Hi!,

These changes allow one to specify the configuration filename to look for, in addition to settings.ini and .env. I hope they may be useful.

Used like so: config = AutoConfig(path, optional_config_filenames=["named.env"])

Thanks!