def get_config(self, code_dir, project_dir):
<EOL>search_dirs = [code_dir, project_dir]<EOL>LOG.debug("<STR_LIT>", search_dirs)<EOL>for config in self.configs:<EOL><INDENT>if any([self._has_manifest(config, directory) for directory in search_dirs]):<EOL><INDENT>return config<EOL><DEDENT><DEDENT>raise ValueError("<STR_LIT>".format(<EOL>[config.manifest_name for config in self.configs],<EOL>search_dirs))<EOL>
Finds a configuration by looking for a manifest in the given directories.

Returns
-------
samcli.lib.build.workflow_config.CONFIG
    A supported configuration if one is found

Raises
------
ValueError
    If none of the supported manifests files are found