

def createLocalWorkers(self, protocols, workingDirectory):
    '\n        Create local worker protocol instances and return them.\n\n        @param protocols: An iterable of L{LocalWorkerAMP} instances.\n\n        @param workingDirectory: The base path in which we should run the\n            workers.\n        @type workingDirectory: C{str}\n\n        @return: A list of C{quantity} C{LocalWorker} instances.\n        '
    return [LocalWorker(protocol, os.path.join(workingDirectory, str(x)), self._logFile) for (x, protocol) in enumerate(protocols)]

dataset/ETHPy150Open twisted/twisted/twisted/trial/_dist/disttrial.py DistTrialRunner.createLocalWorkers/original