Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to change the KEY_LOCATION #31

Open
gbronner opened this issue Aug 25, 2016 · 0 comments
Open

Not possible to change the KEY_LOCATION #31

gbronner opened this issue Aug 25, 2016 · 0 comments

Comments

@gbronner
Copy link

Hi,
According to the docs, the KEY_LOCATION is read from

sunlight.config.KEY_LOCATION

Unfortunately,
init.py calls import sunlight.config, and then calls

_attempt_to_load_apikey

on import of sunlight.

As a practical matter, this means that you cannot do something like

import sunlight
sunlight.config.KEY_LOCATION="mykey.txt"

..do something with sunlight.

It would be nice if sunlight either deferred its check for the api key, or used a variable not in the sunlight package.

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

No branches or pull requests

1 participant