exa.core.provider.provider.init_from_env#
- init_from_env(username='', env_path=None)#
Initialize the loggers and ExaRuntime from environment variables.
Loggers will be initialized with default configuration if environment.LOGGERS_CONF_PATH is empty.
- Parameters:
username (str) – Passed to init_station_control_runtime to override or set the user.
env_path (str | None) – Path to a .env file to load explicitly. If provided, this file has the highest priority, overriding the current process environment and any other .env files. If
env_pathis not given, values are loaded from the current process environment and any .env files in current working directory. In case of conflict, existing environment variables are given priority (following the default logic ofdotenv.load_dotenv())
- Raises:
FileNotFoundError – If env_path is provided but the file does not exist.
- Return type:
None