def _load(self, exit_on_failure):
<EOL>log = logging.getLogger('<STR_LIT>')<EOL>discoveredFileList = []<EOL>if self.config_file:<EOL><INDENT>if isinstance(self.config_file, str):<EOL><INDENT>discoveredFileList = self.file_parser.read(self.config_file)<EOL><DEDENT>else:<EOL><INDENT>discoveredFileList = self.file_parser.readfp(<EOL>self.config_file,<EOL>"<STR_LIT>")<EOL><DEDENT><DEDENT>else:<EOL><INDENT>defaultFileList = []<EOL>defaultFileList.append(self.prog_name + "<STR_LIT>")<EOL>defaultFileList.append(<EOL>os.path.expanduser('<STR_LIT>' + self.prog_name + '<STR_LIT>'))<EOL>defaultFileList.append('<STR_LIT>' + self.prog_name + '<STR_LIT>')<EOL>log.debug("<STR_LIT>" + str(defaultFileList))<EOL>discoveredFileList = self.file_parser.read(defaultFileList)<EOL><DEDENT>log.debug("<STR_LIT>" + str(discoveredFileList))<EOL>if self.mandatory and len(discoveredFileList) < <NUM_LIT:1>:<EOL><INDENT>msg = "<STR_LIT>"<EOL>msg += "<STR_LIT>" + str(defaultFileList)<EOL>log.error(msg)<EOL>raise EnvironmentError(msg)<EOL><DEDENT>log.debug("<STR_LIT>")<EOL>if exit_on_failure:<EOL><INDENT>for s in list(self.sections.values()):<EOL><INDENT>log.debug("<STR_LIT>" + s.get_section_name())<EOL>try:<EOL><INDENT>s.load(self.file_parser)<EOL><DEDENT>except ValueError:<EOL><INDENT>sys.exit(<NUM_LIT:1>)<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>for s in list(self.sections.values()):<EOL><INDENT>log.debug("<STR_LIT>" + s.get_section_name())<EOL>s.load(self.file_parser)<EOL><DEDENT><DEDENT>log.debug("<STR_LIT>")<EOL>
One you have added all your configuration data (Section, Element,
        ...) you need to load data from the config file.