def __init__(self, filename=None, text=None):
        for s in self.__sects:
            setattr(self, s, {})
        self._cp = ConfigParser()
        self.filename = filename
        if self.filename is None:
            cfile = self.get_default_configfile()
            if (os.path.exists(cfile) and os.path.isfile(cfile)):
                self.filename = cfile
        if self.filename is not None:
            self.Read(self.filename)
dataset/ETHPy150Open xraypy/xraylarch/plugins/epics/spyk.py/SpykConfig.__init__/original