Home
last modified time | relevance | path

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

/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/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/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/Modules/
Dgetpath.c1053 wchar_t *zip_path, size_t zip_path_len) in calculate_zip_path() argument
1059 if (safe_wcscpy(zip_path, prefix, zip_path_len) < 0) { in calculate_zip_path()
1062 reduce(zip_path); in calculate_zip_path()
1063 reduce(zip_path); in calculate_zip_path()
1066 if (safe_wcscpy(zip_path, calculate->prefix, zip_path_len) < 0) { in calculate_zip_path()
1070 status = joinpath(zip_path, L"lib/python00.zip", zip_path_len); in calculate_zip_path()
1076 size_t bufsz = wcslen(zip_path); in calculate_zip_path()
1077 zip_path[bufsz - 6] = VERSION[0]; in calculate_zip_path()
1078 zip_path[bufsz - 5] = VERSION[2]; in calculate_zip_path()
1088 const wchar_t *zip_path) in calculate_module_search_path() argument
[all …]
/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/v8/third_party/zlib/google/
Dzip_unittest.cc145 base::FilePath zip_path(test_dir_); in SetUp() local
146 zip_contents_.insert(zip_path.Append(FILE_PATH_LITERAL("foo.txt"))); in SetUp()
147 zip_path = zip_path.Append(FILE_PATH_LITERAL("foo")); in SetUp()
148 zip_contents_.insert(zip_path); in SetUp()
149 zip_contents_.insert(zip_path.Append(FILE_PATH_LITERAL("bar.txt"))); in SetUp()
150 zip_path = zip_path.Append(FILE_PATH_LITERAL("bar")); in SetUp()
151 zip_contents_.insert(zip_path); in SetUp()
152 zip_contents_.insert(zip_path.Append(FILE_PATH_LITERAL("baz.txt"))); in SetUp()
153 zip_contents_.insert(zip_path.Append(FILE_PATH_LITERAL("quux.txt"))); in SetUp()
154 zip_contents_.insert(zip_path.Append(FILE_PATH_LITERAL(".hidden"))); in SetUp()
/external/zlib/google/
Dzip_unittest.cc144 base::FilePath zip_path(test_dir_); in SetUp() local
145 zip_contents_.insert(zip_path.Append(FILE_PATH_LITERAL("foo.txt"))); in SetUp()
146 zip_path = zip_path.Append(FILE_PATH_LITERAL("foo")); in SetUp()
147 zip_contents_.insert(zip_path); in SetUp()
148 zip_contents_.insert(zip_path.Append(FILE_PATH_LITERAL("bar.txt"))); in SetUp()
149 zip_path = zip_path.Append(FILE_PATH_LITERAL("bar")); in SetUp()
150 zip_contents_.insert(zip_path); in SetUp()
151 zip_contents_.insert(zip_path.Append(FILE_PATH_LITERAL("baz.txt"))); in SetUp()
152 zip_contents_.insert(zip_path.Append(FILE_PATH_LITERAL("quux.txt"))); in SetUp()
153 zip_contents_.insert(zip_path.Append(FILE_PATH_LITERAL(".hidden"))); in SetUp()
/external/python/cpython3/PC/
Dgetpathp.c794 const wchar_t *zip_path, in calculate_home_prefix() argument
798 if (zip_path[0] && exists(zip_path)) { in calculate_home_prefix()
799 wcscpy_s(prefix, MAXPATHLEN+1, zip_path); in calculate_home_prefix()
821 const wchar_t *zip_path) in calculate_module_search_path() argument
868 bufsz += wcslen(zip_path) + 1; in calculate_module_search_path()
888 if (zip_path[0]) { in calculate_module_search_path()
889 if (wcscpy_s(buf, bufsz - (buf - start_buf), zip_path)) { in calculate_module_search_path()
1027 wchar_t zip_path[MAXPATHLEN+1]; in calculate_path() local
1028 memset(zip_path, 0, sizeof(zip_path)); in calculate_path()
1030 change_ext(zip_path, in calculate_path()
[all …]
/external/tensorflow/tensorflow/lite/testing/
Dzip_test_utils.py289 zip_path = os.path.join(options.output_path, options.zip_to_output)
304 (zip_path, all_parameter_count, _MAX_TESTS_PER_ZIP))
312 archive = zipfile.PyZipFile(zip_path, "w")
332 label_base_path = zip_path
504 report_lib.make_report_table(report_io, zip_path, convert_report)
528 " and %d TOCO converted graphs (%.1f%%"), zip_path, total_conversions,
536 (zip_path, int(100 * tf_failures / parameter_count)))
541 (expected_tf_failures, zip_path, tf_failures))
Dgenerate_examples_lib.py306 zip_path = os.path.join(options.output_path, options.zip_to_output)
307 with zipfile.PyZipFile(zip_path, "w") as archive:
320 os.path.dirname(zip_path), test_name + ".zip")
/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.py336 zip_path = ns.temp / zip_name
337 if zip_path.is_file():
338 zip_path.unlink()
339 elif zip_path.is_dir():
346 with zipfile.ZipFile(zip_path, "w", zipfile.ZIP_DEFLATED) as zf:
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_utils.py1846 zip_path = os.path.join(working_dir, 'tmp.zip')
1848 zip_utils.WriteZipFile(zip_path, files)
1853 os.path.getsize(zip_path))
1857 self.adb.Push(zip_path, device_temp.name)