Configuration

The class EnvConfig is meant to initialize wenv.Env. For available configuration options, see chapter on configuration parameters.

class wenv.EnvConfig(**override)

Wine Python environment configuration. Subclass of dict. It holds default values and overwrites them with values found in configuration files and environment variables. Usually, one should not work with this class directly - unless an access to current configuration parameters is desired.

Parameters

override (Any) – Specify custom values for configuration parameters via keyword arguments.

__getitem__(key)

Returns values from the following sources in the following order:

  • Environment variables

  • Internal storage, i.e. changed in the dictionary or read from configuration files.

  • Default values.

Parameters

key (str) – Name of configuration value.

Return type

Any

Returns

Arbitrary configuration value.

export_dict()

Exports a dictionary.

Return type

Dict[str, Any]

export_envvar_dict()

Exports a dictionary which can passed to the OS as a set of environment variables for wenv itself.

Return type

Dict[str, str]