jdechalendar / gridemissions

Tools for power sector emissions tracking
MIT License
35 stars 6 forks source link

Add option to load defaults as env variables #3

Closed eljpsm closed 2 years ago

eljpsm commented 2 years ago

Allow the user to specify environment variables to configure the default behavior when initially loading the module.

Signed-off-by: Elijah J. Passmore elijahjpassmore@elijahjpassmore.com

eljpsm commented 2 years ago

@jdechalendar Do you have an opinion on this? The reason for this pull request is to more easily use this library on read-only file systems, where /tmp may be the only writable directory. With this change, you won't have to go into src/gridemissions/configure.py, instead you can just change the set up environment variable.

Would love to hear any feedback.

jdechalendar commented 2 years ago

@elijahjpassmore I just reviewed these changes. They make sense to me. Thanks for your contribution!