pyarts.environment

Handling of environment variables.

Implements a mapping object for environment variables.

The handler is used like os.environ:

>>> environ['ARTS_DATA_PATH']
'path/to/data'
>>> 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 (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.

environ

A mapping object for environment variables.