(self, iniPath, createConfig=True)
| 392 | return path |
| 393 | |
| 394 | def _parseConfigFile(self, iniPath, createConfig=True): |
| 395 | parser = SafeConfigParserUnicode(strict=False) |
| 396 | if not os.path.isfile(iniPath): |
| 397 | if createConfig: |
| 398 | open(iniPath, 'w').close() |
| 399 | else: |
| 400 | return |
| 401 | parser.read_file(codecs.open(iniPath, "r", "utf_8_sig")) |
| 402 | for section, options in list(self._iniStructure.items()): |
| 403 | if parser.has_section(section): |
| 404 | for option in options: |
| 405 | if parser.has_option(section, option): |
| 406 | self._config[option] = parser.get(section, option) |
| 407 | |
| 408 | def _checkConfig(self): |
| 409 | try: |
no test coverage detected