/external/webrtc/rtc_tools/testing/ |
D | utils.py | 91 def UnpackArchiveTo(archive_path, output_dir): argument 92 extension = os.path.splitext(archive_path)[1] 94 _UnzipArchiveTo(archive_path, output_dir) 96 _UntarArchiveTo(archive_path, output_dir) 99 def _UnzipArchiveTo(archive_path, output_dir): argument 100 print('Unzipping {} in {}.'.format(archive_path, output_dir)) 101 zip_file = zipfile.ZipFile(archive_path) 108 def _UntarArchiveTo(archive_path, output_dir): argument 109 print('Untarring {} in {}.'.format(archive_path, output_dir)) 110 tar_file = tarfile.open(archive_path, 'r:gz')
|
/external/chromium-trace/catapult/dependency_manager/dependency_manager/ |
D | dependency_manager_util_unittest.py | 59 self.archive_path = self.CreateZipArchiveFromDir(self.tmp_dir) 64 if os.path.isfile(self.archive_path): 65 os.remove(self.archive_path) 109 archive_path = shutil.make_archive(base_path, 'zip', dir_path) 110 self.assertTrue(os.path.exists(archive_path)) 111 self.assertTrue(zipfile.is_zipfile(archive_path)) 113 if os.path.isfile(archive_path): 114 os.remove(archive_path) 116 return archive_path 133 dependency_manager_util.UnzipArchive(self.archive_path, unzip_path) [all …]
|
D | dependency_manager_util.py | 77 def UnzipArchive(archive_path, unzip_path): argument 88 if not (archive_path and zipfile.is_zipfile(archive_path)): 90 'Attempting to unzip a non-archive file at %s' % archive_path) 97 unzip_cmd = ['ditto', '-x', '-k', archive_path, unzip_path] 103 with zipfile.ZipFile(archive_path, 'r') as archive:
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | webpagereplay_go_server.py | 83 def __init__(self, archive_path, replay_host, http_port, https_port, argument 98 self.archive_path = archive_path 110 replay_options, archive_path) 114 os.path.dirname(self.archive_path)) 115 elif not os.path.exists(self.archive_path): 116 self._AssertPathExists('archive file', self.archive_path) 183 options, archive_path): argument 223 cmd_line.append(archive_path)
|
/external/python/cpython3/Lib/importlib/ |
D | _common.py | 20 archive_path = spec.loader.archive 21 rel_path = package_directory.relative_to(archive_path) 22 return zipfile.Path(archive_path, str(rel_path) + '/')
|
/external/tensorflow/tensorflow/lite/ios/ |
D | extract_object_files_main.py | 31 archive_path = argv[1] 33 with open(archive_path, 'rb') as archive_file:
|
D | extract_object_files_test.py | 54 archive_path = resource_loader.get_path_to_datafile(input_file_relpath) 56 with open(archive_path, 'rb') as archive_file:
|
/external/llvm-project/lldb/examples/python/ |
D | bsd.py | 510 (archive_path, object_name) = path[0:-1].split('(') 511 if not archive_path and not object_name: 517 if not os.path.exists(archive_path): 521 print_file_missing_error(archive_path) 523 if archive_path in archives: 524 archive = archives[archive_path] 526 archive = Archive(archive_path) 527 archives[archive_path] = archive
|
/external/autotest/server/site_tests/graphics_MultipleDisplays/ |
D | graphics_MultipleDisplays.py | 85 archive_path = os.path.join(self.bindir, 'files', static_content) 87 with tarfile.open(archive_path, 'r') as tar:
|
/external/libchrome/build/android/gyp/util/ |
D | resource_utils.py | 62 for archive_path, source_path in files_to_zip.iteritems(): 63 info_file.write('{},{}\n'.format(archive_path, source_path))
|
/external/oss-fuzz/infra/ |
D | helper.py | 702 archive_path = corpus_dir + '.zip' 703 command = ['gsutil', '-q', 'cp', latest_backup_url, archive_path] 706 command = ['unzip', '-q', '-o', archive_path, '-d', corpus_dir] 708 os.remove(archive_path)
|
/external/libchrome/build/ |
D | get_syzygy_binaries.py | 325 archive_path = _SYZYGY_ARCHIVE_PATH % { 'revision': options.revision } 343 resource = archive_path + '/' + base
|