environ

Handling of environment variables.

Implements a mapping object for environment variables.

The handler is used like os.environ:

>>> typhon.environ['ARTS_DATA_PATH']
'path/to/data'
>>> typhon.environ.get('ARTS_DATA_PATH')
'path/to/data'

In addition to the user’s environment, variables can be set in the in the configuration file (typhon.config) in the environment section:

[environment]
ARTS_BUILD_PATH: /path/to/arts/build/

Note

If the environment variable is set explicitly, the value set in the configuration file is ignored.