def _read_config(self):
default_config_filepath = Path2(os.path.dirname(__file__), DEAFULT_CONFIG_FILENAME)<EOL>log.debug("<STR_LIT>" % default_config_filepath)<EOL>if not default_config_filepath.is_file():<EOL><INDENT>raise RuntimeError(<EOL>"<STR_LIT>" % default_config_filepath<EOL>)<EOL><DEDENT>config = self._read_and_convert(default_config_filepath, all_values=True)<EOL>log.debug("<STR_LIT>", pprint.pformat(config))<EOL>self.ini_filepath = get_ini_filepath()<EOL>if not self.ini_filepath:<EOL><INDENT>self.ini_filepath = get_user_ini_filepath()<EOL>with default_config_filepath.open("<STR_LIT:r>") as infile:<EOL><INDENT>with self.ini_filepath.open("<STR_LIT:w>") as outfile:<EOL><INDENT>outfile.write(infile.read())<EOL><DEDENT><DEDENT>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>" % self.ini_filepath)<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>")<EOL>print("<STR_LIT>" % self.ini_filepath)<EOL>config.update(self._read_and_convert(self.ini_filepath, all_values=False))<EOL>log.debug("<STR_LIT>", pprint.pformat(config))<EOL><DEDENT>return config<EOL>
returns the config as a dict.