@classmethod
    def make_zip(cls, zip_name):

        null_f = open(os.devnull, 'w')
        cmd = ['zip', '-r', zip_name, '.']

        proc = Popen(cmd, stdout=null_f, stderr=null_f, shell=False)

        proc.wait()
        null_f.close()

        return proc.returncode
Make a ZIP file
dataset/ETHPy150Open jakev/dtf/src/dtf/core/cmds/archive.py/archive.make_zip