def connect_worker(self, workdir): LocalWorker(self.worker.name, workdir.path, False).setServiceParent(self.worker)