Searched refs:zipfile (Results 1 - 4 of 4) sorted by relevance

/development/build/tools/
H A Dmk_sources_zip.py24 import zipfile namespace
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)
[all...]
/development/scripts/
H A Ddivide_and_compress_test.py28 import zipfile namespace
104 compress=zipfile.ZIP_DEFLATED,
125 source_zip = self.my_mox.CreateMock(zipfile.ZipFile)
143 dest_zip = mox.MockObject(zipfile.ZipFile)
217 mock_zip = self.my_mox.CreateMock(zipfile.ZipFile)
256 mock_zip = self.my_mox.CreateMock(zipfile.ZipFile)
288 compress=zipfile.ZIP_DEFLATED).AndReturn(archive_mock)
292 zipfile.ZIP_DEFLATED)
317 archive_mock = self.my_mox.CreateMock(zipfile.ZipFile)
381 self.test_target.AddFileToArchive('/dir1/file1.txt', zipfile
[all...]
H A Ddivide_and_compress.py43 import zipfile namespace
179 compress_bit = zipfile.ZIP_STORED
181 compress_bit = zipfile.ZIP_DEFLATED
195 def OpenZipFileAtPath(self, path, mode=None, compress=zipfile.ZIP_DEFLATED):
204 return zipfile.ZipFile(path, mode)
206 return zipfile.ZipFile(path, mode, compress)
229 compress_bit = zipfile.ZIP_DEFLATED
231 compress_bit = zipfile.ZIP_STORED
/development/scripts/app_engine_server/
H A Dmemcache_zipserve.py38 import zipfile namespace
573 zip_archive = zipfile.ZipFile(zipfilename)
576 logging.error('Can\'t open zipfile %s, cause: %s' % (zipfilename,

Completed in 144 milliseconds