def set(self, key, value):
        assert self.configs  # There should always be at least a fallback config

        write_to = None

        for config in self.configs:
            if config.has_key(key):
                write_to = config
        if write_to is None:
            write_to = self.configs[0]

        write_to.set(key, value)
        logger.debug("Set %s in %s", key, write_to.path)
Write a config key from the first config that has it.
dataset/ETHPy150Open koenbok/Cactus/cactus/config/router.py/ConfigRouter.set