def __init__()

in modular_cli/service/config.py [0:0]


    def __init__(self):
        self.config_path = get_credentials_folder() / CREDENTIALS_FILE_NAME
        if not os.path.exists(self.config_path):
            raise ModularCliConfigurationException(
                f'The Modular-CLI tool is not setup. Please execute the '
                f'following command: \'{ENTRY_POINT} setup\'')
        self.config_dict = None
        with open(self.config_path, 'r') as config_file:
            self.config_dict = yaml.safe_load(config_file.read())
        missing_property = []
        for prop in REQUIRED_PROPS:
            if not self.config_dict.get(prop):
                missing_property.append(prop)
        if missing_property:
            raise ModularCliConfigurationException(
                f'Modular-CLI configuration is broken. '
                f'The following properties are '
                f'required but missing: {missing_property}')
        SYSTEM_LOG.info(
            f'Modular-CLI configuration has been loaded')