def __init__(self, decryptedLinks_queue, log_queue, count_queue): BaseThread.__init__(self) self.decryptedLinks_queue = decryptedLinks_queue self.log_queue = log_queue self.count_queue = count_queue self.fileLayout = returnFileLayout() self.logpath = returnLogPath() self.absolutePath = returnPath() self.path = self.absolutePath \ + self.fileLayout[0] + "/" \ + self.fileLayout[1] + "/" \ + self.fileLayout[2] + "/" if not os.path.exists(self.path): os.makedirs(self.path)
def __init__(self, log_queue): threading.Thread.__init__(self) self.log_queue = log_queue self.logpath = returnLogPath()