dmf.env.setup#

dmf.env.setup(project_env_path: str | Path = '.env', user_env_path: str | Path = '~/.env.dmf', override: bool = False) EnvManager[source]#

Set up the environment by loading variables from user and project .env files.

Parameters:
  • project_env_path (Union[str, Path], optional) – The path to the project’s .env file. Defaults to “.env”.

  • user_env_path (Union[str, Path], optional) – The path to the user’s .env.dmf file. Defaults to “~/.env.dmf”.

  • override (bool, optional) – Whether to override existing environment variables with values from the .env files. Defaults to False.

Returns:

The initialized EnvManager instance.

Return type:

EnvManager