Ejemplo n.º 1
0
    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")
Ejemplo n.º 2
0
    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")
Ejemplo n.º 3
0
    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")