示例#1
0
文件: __init__.py 项目: smanne/cydra
    def __init__(self, config=None):
        logging.basicConfig(level=logging.DEBUG)

        ComponentManager.__init__(self)

        load_components(self)

        self.config = Configuration(self)
        self.config.load(config)

        logger.debug("Configuration loaded: %s", repr(self.config._data))
示例#2
0
文件: __init__.py 项目: mensi/cydra
    def __init__(self, config=None):
        logging.basicConfig(level=logging.DEBUG)

        ComponentManager.__init__(self)

        load_components(self, 'cydra.config')

        self.config = Configuration(self)
        self.config.load(config)
        logger.debug("Configuration loaded: %s", repr(self.config._data))

        load_components(self)

        # Update last instance to allow instance reusing
        Cydra._last_instance = self