Environment Variables

Config values may include references to environment variables. To substitute an environment variable into your value use

%(ENVVAR_NAME)s

When the variable has not been set you can assert a default value using the following format

%(ENVVAR_NAME:default_value)s

For example:

[LOG]
path = %(TEMP:./logs)s
file = %(LOG_FILE:pyxll.log)s

It’s possible to set environment variables in the [ENVIRONMENT] section of the config file.

[ENVIRONMENT]
NAME = VALUE

For each environment variable you would like set, add a line to the [ENVIRONMENT] section.