Skip to content

Not possible to change the KEY_LOCATION #31

@gbronner

Description

@gbronner

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions