Lines Matching refs:path
146 if os.path.exists(package_path):
156 for path in dirs_to_check:
158 cvd_host_package = os.path.join(path, name)
159 if os.path.exists(cvd_host_package):
168 def FindLocalImage(path, default_name_pattern, raise_error=True): argument
182 path = os.path.abspath(path)
183 if os.path.isdir(path):
184 names = [name for name in os.listdir(path) if
193 path = os.path.join(path, names[0])
194 if os.path.isfile(path):
195 return path
208 if not os.path.isfile(image_path):
214 def FindBootImage(path, raise_error=True): argument
216 boot_image_path = FindLocalImage(path, _BOOT_IMAGE_NAME_PATTERN,
224 def FindVendorBootImage(path, raise_error=True): argument
226 return FindLocalImage(path, _VENDOR_BOOT_IMAGE_NAME_PATTERN, raise_error)
229 def FindSystemImages(path): argument
242 path = os.path.abspath(path)
243 if os.path.isfile(path):
244 return SystemImagePaths(path, None, None)
246 image_dir = path
247 system_image_path = os.path.join(image_dir, _SYSTEM_IMAGE_NAME)
248 if not os.path.isfile(system_image_path):
249 image_dir = os.path.join(path, _TARGET_FILES_IMAGES_DIR_NAME)
250 system_image_path = os.path.join(image_dir, _SYSTEM_IMAGE_NAME)
251 if not os.path.isfile(system_image_path):
255 system_ext_image_path = os.path.join(image_dir, _SYSTEM_EXT_IMAGE_NAME)
256 product_image_path = os.path.join(image_dir, _PRODUCT_IMAGE_NAME)
259 (system_ext_image_path if os.path.isfile(system_ext_image_path) else
261 (product_image_path if os.path.isfile(product_image_path) else None))
278 temp_file = os.path.join(extract_path, artifact)
304 if os.path.islink(instance_dir):
310 abs_instance_dir = os.path.abspath(avd_spec.local_instance_dir)
314 if not os.path.exists(instance_dir):