loganasherjones / yapconf

Yet Another Python Configuration
http://yapconf.readthedocs.io/en/stable/
MIT License
18 stars 4 forks source link

Special value for environment source #89

Open hazmat345 opened 6 years ago

hazmat345 commented 6 years ago

This arose out of #88:

Would it be possible to have a sort of dummy class defined in yapconf that can represent the environment source? That way instead of having to use a magic string you could pass an object.

# Current
spec.load_config('ENVIRONMENT')

# Proposed
spec.load_config(yapconf.env)