|
|
@ -1,7 +1,7 @@
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
import collections
|
|
|
|
import collections
|
|
|
|
|
|
|
|
|
|
|
|
from .p3 import configparser, _read_config
|
|
|
|
from .p3 import configparser, ConfigParser, _read_config
|
|
|
|
|
|
|
|
|
|
|
|
from .content import check_file, _open
|
|
|
|
from .content import check_file, _open
|
|
|
|
|
|
|
|
|
|
|
@ -49,7 +49,7 @@ class Config(object):
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, **kwargs):
|
|
|
|
def __init__(self, **kwargs):
|
|
|
|
object.__setattr__(self, '_section', MAIN_SECTION) # active section
|
|
|
|
object.__setattr__(self, '_section', MAIN_SECTION) # active section
|
|
|
|
object.__setattr__(self, '_cfg', configparser.SafeConfigParser())
|
|
|
|
object.__setattr__(self, '_cfg', ConfigParser())
|
|
|
|
|
|
|
|
|
|
|
|
self._cfg.add_section(self._section)
|
|
|
|
self._cfg.add_section(self._section)
|
|
|
|
for name, value in DFT_CONFIG.items():
|
|
|
|
for name, value in DFT_CONFIG.items():
|
|
|
|