

def unzip(self):
    '\n        Unzip the snapshot file.\n        '
    if self.verbosity:
        self.log(' Unzipping archive')
    with zipfile.ZipFile(self.zip_path) as zf:
        for member in zf.infolist():
            words = member.filename.split('/')
            path = self.data_dir
            for word in words[:(- 1)]:
                (drive, word) = os.path.splitdrive(word)
                (head, word) = os.path.split(word)
                if (word in (os.curdir, os.pardir, '')):
                    continue
                path = os.path.join(path, word)
            zf.extract(member, path)

dataset/ETHPy150Open california-civic-data-coalition/django-calaccess-raw-data/calaccess_raw/management/commands/downloadcalaccessrawdata.py Command.unzip/original