def set_from_config_file(self, filename):
if not os.path.exists(filename):<EOL><INDENT>raise LintConfigError(u"<STR_LIT>".format(filename))<EOL><DEDENT>self._config_path = os.path.abspath(filename)<EOL>try:<EOL><INDENT>parser = ConfigParser()<EOL>parser.read(filename)<EOL>for section_name in parser.sections():<EOL><INDENT>for option_name, option_value in parser.items(section_name):<EOL><INDENT>self.set_option(section_name, option_name, ustr(option_value))<EOL><DEDENT><DEDENT><DEDENT>except ConfigParserError as e:<EOL><INDENT>raise LintConfigError(ustr(e))<EOL><DEDENT>
Loads lint config from a ini-style config file