mlos_bench.os_environ

Simple platform agnostic abstraction for the OS environment variables. Meant as a replacement for os.environ vs nt.environ.

Example

>>> # Import the environ object.
>>> from mlos_bench.os_environ import environ
>>> # Set an environment variable.
>>> environ["FOO"] = "bar"
>>> # Get an environment variable.
>>> pwd = environ.get("PWD")

Attributes

environ

A platform agnostic abstraction for the OS environment variables.

Module Contents

mlos_bench.os_environ.environ: EnvironType[source]

A platform agnostic abstraction for the OS environment variables.