(file, outPath)
| 155 | z.write(absfn, zfn) |
| 156 | |
| 157 | def unzip(file, outPath): |
| 158 | fh = open(file, 'rb') |
| 159 | z = zipfile.ZipFile(fh) |
| 160 | for name in z.namelist(): |
| 161 | z.extract(name, outPath + "/") |
| 162 | fh.close() |
| 163 | |
| 164 | ################################### |
| 165 | # Doit utils |