Home
last modified time | relevance | path

Searched refs:zip_path (Results 1 – 14 of 14) sorted by relevance

/external/tensorflow/tensorflow/lite/testing/
Dgenerate_examples.py293 def make_control_dep_tests(zip_path): argument
318 zip_path,
385 def make_zip_of_tests(zip_path, argument
429 % (zip_path, parameter_count, _MAX_TESTS_PER_ZIP))
432 archive = zipfile.PyZipFile(zip_path, "w")
441 label = zip_path.replace(".zip", "_") + (",".join(
559 report_lib.make_report_table(report_io, zip_path, convert_report)
574 " and %d TOCO converted graphs (%.1f%%"), zip_path,
582 (zip_path, int(100 * tf_failures / parameter_count)))
587 zip_path, tf_failures))
[all …]
/external/python/cpython2/PC/os2emx/
Dgetpathp.c266 char zip_path[MAXPATHLEN+1]; in calculate_path() local
286 strncpy(zip_path, progpath, MAXPATHLEN); in calculate_path()
287 zip_path[MAXPATHLEN] = '\0'; in calculate_path()
288 len = strlen(zip_path); in calculate_path()
290 zip_path[len-3] = 'z'; /* change ending to "zip" */ in calculate_path()
291 zip_path[len-2] = 'i'; in calculate_path()
292 zip_path[len-1] = 'p'; in calculate_path()
295 zip_path[0] = 0; in calculate_path()
321 bufsz += strlen(zip_path) + 1; in calculate_path()
345 if (zip_path[0]) { in calculate_path()
[all …]
/external/python/cpython2/Modules/
Dgetpath.c379 char zip_path[MAXPATHLEN+1]; in calculate_path() local
519 strncpy(zip_path, prefix, MAXPATHLEN); in calculate_path()
520 zip_path[MAXPATHLEN] = '\0'; in calculate_path()
522 reduce(zip_path); in calculate_path()
523 reduce(zip_path); in calculate_path()
526 strncpy(zip_path, PREFIX, MAXPATHLEN); in calculate_path()
527 joinpath(zip_path, "lib/python00.zip"); in calculate_path()
528 bufsz = strlen(zip_path); /* Replace "00" with version */ in calculate_path()
529 zip_path[bufsz - 6] = VERSION[0]; in calculate_path()
530 zip_path[bufsz - 5] = VERSION[2]; in calculate_path()
[all …]
/external/chromium-trace/catapult/devil/devil/utils/
Dzip_utils_test.py30 zip_path = os.path.join(working_dir, 'out.zip')
31 zip_utils.WriteZipFile(zip_path, zip_tuples)
33 self.assertTrue(zipfile.is_zipfile(zip_path))
35 actual = zipfile.ZipFile(zip_path)
Dzip_utils.py55 def _WriteZipFile(zip_path, zip_contents): argument
56 with zipfile.ZipFile(zip_path, 'w') as zip_file:
61 def WriteZipFile(zip_path, zip_contents): argument
75 'zip_path': zip_path,
87 exc_msg = ['Failed to create %s' % zip_path]
/external/python/cpython2/PC/
Dgetpathp.c475 char zip_path[MAXPATHLEN+1]; in calculate_path() local
499 strncpy(zip_path, dllpath, MAXPATHLEN); in calculate_path()
501 strncpy(zip_path, progpath, MAXPATHLEN); in calculate_path()
502 zip_path[MAXPATHLEN] = '\0'; in calculate_path()
503 len = strlen(zip_path); in calculate_path()
505 zip_path[len-3] = 'z'; /* change ending to "zip" */ in calculate_path()
506 zip_path[len-2] = 'i'; in calculate_path()
507 zip_path[len-1] = 'p'; in calculate_path()
510 zip_path[0] = 0; in calculate_path()
556 bufsz += strlen(zip_path) + 1; in calculate_path()
[all …]
/external/python/cpython2/PCbuild/
Dget_external.py25 def extract_zip(externals_dir, zip_path): argument
26 with zipfile.ZipFile(os.fspath(zip_path)) as zf:
48 zip_path = fetch_zip(
56 extract_zip(args.externals_dir, zip_path).replace(final_name)
/external/python/cpython3/PCbuild/
Dget_external.py25 def extract_zip(externals_dir, zip_path): argument
26 with zipfile.ZipFile(os.fspath(zip_path)) as zf:
48 zip_path = fetch_zip(
56 extract_zip(args.externals_dir, zip_path).replace(final_name)
/external/libchrome/build/android/gyp/util/
Dbuild_utils.py252 def ExtractAll(zip_path, path=None, no_clobber=True, pattern=None, argument
259 if not zipfile.is_zipfile(zip_path):
260 raise Exception('Invalid zip file: %s' % zip_path)
263 with zipfile.ZipFile(zip_path) as z:
279 % (zip_path, name, output_path))
292 def AddToZipHermetic(zip_file, zip_path, src_path=None, data=None, argument
306 _CheckZipPath(zip_path)
307 zipinfo = zipfile.ZipInfo(filename=zip_path, date_time=HERMETIC_TIMESTAMP)
311 zipinfo.filename = zip_path
352 for zip_path, fs_path in input_tuples:
[all …]
/external/python/cpython3/Modules/
Dgetpath.c127 wchar_t zip_path[MAXPATHLEN+1]; /* ".../lib/pythonXY.zip" */ member
779 wcsncpy(calculate->zip_path, prefix, MAXPATHLEN); in calculate_zip_path()
780 calculate->zip_path[MAXPATHLEN] = L'\0'; in calculate_zip_path()
784 reduce(calculate->zip_path); in calculate_zip_path()
785 reduce(calculate->zip_path); in calculate_zip_path()
788 wcsncpy(calculate->zip_path, calculate->prefix, MAXPATHLEN); in calculate_zip_path()
790 joinpath(calculate->zip_path, L"lib/python00.zip"); in calculate_zip_path()
793 size_t bufsz = wcslen(calculate->zip_path); in calculate_zip_path()
794 calculate->zip_path[bufsz - 6] = VERSION[0]; in calculate_zip_path()
795 calculate->zip_path[bufsz - 5] = VERSION[2]; in calculate_zip_path()
[all …]
/external/python/cpython3/PC/
Dgetpathp.c129 wchar_t zip_path[MAXPATHLEN+1]; member
752 if (calculate->zip_path[0] && exists(calculate->zip_path)) { in calculate_home_prefix()
753 wcscpy_s(prefix, MAXPATHLEN+1, calculate->zip_path); in calculate_home_prefix()
820 bufsz += wcslen(calculate->zip_path) + 1; in calculate_module_search_path()
850 if (calculate->zip_path[0]) { in calculate_module_search_path()
851 if (wcscpy_s(buf, bufsz - (buf - start_buf), calculate->zip_path)) { in calculate_module_search_path()
987 change_ext(calculate->zip_path, in calculate_path_impl()
/external/python/setuptools/pkg_resources/
D__init__.py1619 def _parts(self, zip_path): argument
1622 fspath = self.zip_pre + zip_path
1639 zip_path = self._resource_to_zip(resource_name)
1641 if '/'.join(self._parts(zip_path)) in eagers:
1644 return self._extract_resource(manager, zip_path)
1655 def _extract_resource(self, manager, zip_path): argument
1657 if zip_path in self._index():
1658 for name in self._index()[zip_path]:
1660 manager, os.path.join(zip_path, name)
1665 timestamp, size = self._get_date_and_size(self.zipinfo[zip_path])
[all …]
/external/python/cpython3/PC/layout/
Dmain.py320 zip_path = ns.temp / zip_name
321 if zip_path.is_file():
322 zip_path.unlink()
323 elif zip_path.is_dir():
330 with zipfile.ZipFile(zip_path, "w", zipfile.ZIP_DEFLATED) as zf:
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_utils.py1768 zip_path = os.path.join(working_dir, 'tmp.zip')
1770 zip_utils.WriteZipFile(zip_path, files)
1775 os.path.getsize(zip_path))
1779 self.adb.Push(zip_path, device_temp.name)