Home | History | Annotate | Download | only in tools

Lines Matching refs:zipfile

24 import zipfile
48 self.zipfile = None
194 elif p.zipfile is not None:
196 # zipfile is a path. Copy to it.
197 dest_path = os.path.join(p.zipfile, arc_path)
203 # zipfile is a ZipFile object. Compress with it.
204 p.zipfile.write(filepath, arc_path)
226 p.zipfile = p.DST + "_temp_dir"
227 if os.path.exists(p.zipfile):
228 shutil.rmtree(p.zipfile)
229 props_dest = os.path.join(p.zipfile, TOP_FOLDER + "/source.properties")
233 p.zipfile = z = zipfile.ZipFile(p.DST, "w", zipfile.ZIP_DEFLATED)
240 os.chdir(p.zipfile)
245 shutil.move(os.path.join(p.zipfile, "_temp.zip"), p.DST)
246 shutil.rmtree(p.zipfile)