コード例 #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")
コード例 #2
0
ファイル: gzip.py プロジェクト: pragmagrid/pragma_boot
    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")
コード例 #3
0
ファイル: gzip.py プロジェクト: Delphia-Nien/pragma_boot
    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")