def __init__(self): parseKnown() self.repo = getRepo() self.queue_lock = threading.Lock() self.work_queue = deque() self.executables_builder = ExecutablesBuilder(self.repo, self.work_queue, self.queue_lock)
def __init__(self, **kwargs): raw_args = kwargs.get('raw_args', None) self.args, self.unknowns = parser.parse_known_args(raw_args) self.repo = getRepo(self.args.repo, self.args.repo_dir) self.queue_lock = threading.Lock() self.work_queue = deque() self.executables_builder = ExecutablesBuilder(self.repo, self.work_queue, self.queue_lock, raw_args=raw_args)