whiteprints.environment#

Manage environment variables.

Attributes#

ENVIRONMENT_FILE

The default path to the dotenv file.

Functions#

load_dotenv(→ None)

Load a dotenv file to os.environ.

Module Contents#

whiteprints.environment.ENVIRONMENT_FILE: Final[source]#

The default path to the dotenv file.

whiteprints.environment.load_dotenv(environment_file: pathlib.Path) None[source]#

Load a dotenv file to os.environ.

A dotenv file stores the environment variables useful to customise the behaviour of the app.

Parameters:

environment_file (pathlib.Path) – the dotenv file to load.

Return type:

None