maple.utils.config.load_config

maple.utils.config.load_config(config_path: Path = None) Config

Load configuration from file and environment variables.

Loads configuration in the following order: 1. Reset to default values 2. Load from YAML file (if exists) 3. Apply environment variable overrides

Updates the global config instance and returns it. This function should be called early in application startup to initialize configuration.

Parameters:

config_path – Optional path to config file (default: ~/.maple/config.yaml).

Returns:

Updated global configuration instance.