How to use the configparser.ConfigParser.__init__ function in configparser

To help you get started, we’ve selected a few configparser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jhao104 / proxy_pool / Util / utilClass.py View on Github external
def __init__(self):
        ConfigParser.__init__(self)
github maurosoria / dirsearch / lib / utils / DefaultConfigParser.py View on Github external
def __init__(self):
		configparser.ConfigParser.__init__(self)
github captin411 / ofxclient / ofxclient / config.py View on Github external
def __init__(self, keyring_name='ofxclient',
                 keyring_available=KEYRING_AVAILABLE, **kwargs):
        if sys.version_info >= (3,):
            # python 3
            ConfigParser.__init__(self, interpolation=None)
        else:
            # python 2
            ConfigParser.__init__(self)
        self.keyring_name = keyring_name
        self.keyring_available = keyring_available
        self._unsaved = {}
        self.keyring_name = keyring_name
github nohtyprm / MrPython / mrpython / configHandler.py View on Github external
def __init__(self, cfgFile, cfgDefaults=None):
        """
        cfgFile - string, fully specified configuration file name
        """
        self.file = cfgFile
        ConfigParser.__init__(self, defaults=cfgDefaults, strict=False)
github ESGF / esgf-compute-wps / compute / compute_settings / compute_settings / settings.py View on Github external
def __init__(self, defaults):
        self.defaults = defaults

        configparser.ConfigParser.__init__(self)
github kbengine / kbengine / kbe / res / scripts / common / Lib / idlelib / config.py View on Github external
def __init__(self, cfgFile, cfgDefaults=None):
        """
        cfgFile - string, fully specified configuration file name
        """
        self.file = cfgFile  # This is currently '' when testing.
        ConfigParser.__init__(self, defaults=cfgDefaults, strict=False)
github SamSchott / maestral-dropbox / maestral / config / user.py View on Github external
def __init__(self, name, subfolder):
        cp.ConfigParser.__init__(self, interpolation=None)
        self.name = name
        self.subfolder = subfolder
github werdeil / pibooth / pibooth / config.py View on Github external
def __init__(self, filename, clear=False):
        ConfigParser.__init__(self)
        self.filename = osp.abspath(osp.expanduser(filename))

        if not osp.isfile(self.filename) or clear:
            LOGGER.info("Generate the configuration file in '%s'", self.filename)
            dirname = osp.dirname(self.filename)
            if not osp.isdir(dirname):
                os.makedirs(dirname)
            generate_default_config(self.filename)

        self.reload()