geofileops.TempEnv#

class geofileops.TempEnv(envs: dict[str, Any])#

Context manager to temporarily set/change environment variables.

Existing values for variables are backed up and reset when the scope is left, variables that didn’t exist before are deleted again.

If value is None, the environment variable is deleted within the context.

Parameters:

envs (Dict[str, Any]) – dict with environment variables to set.

__init__(envs: dict[str, Any]) None#

Methods

__init__(envs)