def from_file(self, filename):
self.attempted_config_files.append(filename)<EOL>cp = HandyConfigParser()<EOL>files_read = cp.read(filename)<EOL>if files_read is not None:  <EOL><INDENT>self.config_files.extend(files_read)<EOL><DEDENT>for option_spec in self.CONFIG_FILE_OPTIONS:<EOL><INDENT>self.set_attr_from_config_option(cp, *option_spec)<EOL><DEDENT>if cp.has_section('<STR_LIT>'):<EOL><INDENT>for option in cp.options('<STR_LIT>'):<EOL><INDENT>self.paths[option] = cp.getlist('<STR_LIT>', option)<EOL><DEDENT><DEDENT>
Read configuration from a .rc file.

        `filename` is a file name to read.