def setDecompress(self): self.decompressor = None if self.type in ('raw','splitted'): return self.decompressor = which("gunzip") if self.decompressor is None: # FIXME add check for not found unpigz self.decompressor = which("unpigz")
def __init__(self, base_dir, f): """ Gzip Processor Decompress gzip file with pigz or gunzip """ super(Gzip, self).__init__(base_dir, f) self.decompressor = which("unpigz") if self.decompressor is None: self.decompressor = which("gunzip")