

def __init__(self, config=None):
    '\n        :param toil.common.Config config: If config is not None then the given configuration object will be written\n               to the shared file "config.pickle" which can later be retrieved using the\n               readSharedFileStream. See writeConfigToStore. If this file already exists it will be\n               overwritten. If config is None, the shared file "config.pickle" is assumed to exist\n               and is retrieved. See loadConfigFromStore.\n        '
    if (config is None):
        with self.readSharedFileStream('config.pickle') as fileHandle:
            config = cPickle.load(fileHandle)
            assert (config.workflowID is not None)
            self.__config = fileHandle
    else:
        assert (config.workflowID is None)
        config.workflowID = str(uuid4())
        logger.info(("The workflow ID is: '%s'" % config.workflowID))
        self.__config = config
        self.writeConfigToStore()

dataset/ETHPy150Open BD2KGenomics/toil/src/toil/jobStores/abstractJobStore.py AbstractJobStore.__init__/VarMisuse@60/233 `config`->`fileHandle`