Skip to content

Allow reading of configuration from environment - #36

Open
lekkimworld wants to merge 3 commits into
calmjm:masterfrom
lekkimworld:master
Open

Allow reading of configuration from environment#36
lekkimworld wants to merge 3 commits into
calmjm:masterfrom
lekkimworld:master

Conversation

@lekkimworld

Copy link
Copy Markdown

I would like to run the tojota library where reading from a config file is not feasible but reading from environment variables are so I made small changes to tojota.py so config is attempted read from environment if reading a key doesn't return a value.

@uro

uro commented Jan 2, 2022

Copy link
Copy Markdown

In such case, I would totally move it from JSON config to .env file

@lekkimworld

Copy link
Copy Markdown
Author

But that's also what the PR does. It reads config from the environment (or an .env file) and falls back to the json config if not found there. I also highly prefer a file that's not checked in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants