in scripts/metric_reporter/config.py [0:0]
def __init__(self, config_file: str = "config.ini") -> None:
"""Initialize the Config.
Args:
config_file (str): Path to the configuration file.
Raises:
InvalidConfigError: If the configuration file contains missing or invalid values,
or if an error occurs while building Metric Reporter arguments.
"""
self.config_parser = ConfigParser()
self.config_parser.read(config_file)
self.metric_reporter_config: MetricReporterConfig = self._parse_metric_reporter_config(
self.config_parser
)
self.logger.info("Successfully loaded configuration")