dmf.env.setenv#

dmf.env.setenv(key: str, value: str, scope: Literal['project', 'user'] | None = None)[source]#

Set an environment variable.

Parameters:
  • key (str) – The name of the environment variable.

  • value (str) – The value to set for the environment variable.

  • scope (Optional[Literal["project", "user"]], optional) – The environment in which to set the variable. Can be “project” or “user”. Defaults to None.