Lines Matching refs:os

36 import os.path
47 assert os.path.exists(unpacked_name)
61 unpacked_name = os.path.join(input_tmp, file_path)
62 assert os.path.exists(unpacked_name)
111 unpacked_name = os.path.join(
172 if not os.path.exists(os.path.join(input_tmp, script_path)):
177 with open(os.path.join(input_tmp, script_path), 'r') as script:
242 if not os.path.isdir(src):
244 for filename in os.listdir(src):
245 if os.path.exists(os.path.join(dst, filename)):
247 os.symlink(os.path.join(src, filename), os.path.join(dst, filename))
273 symlinkIfNotExists(os.path.join(input_tmp, "RADIO"),
274 os.path.join(input_tmp, "IMAGES"))
287 image_path = os.path.join(input_tmp, 'OTA', image)
289 image_path = os.path.join(input_tmp, 'IMAGES', image)
290 if not os.path.exists(image_path):
307 verity_key_mincrypt = os.path.join(input_tmp, 'ROOT', 'verity_key')
308 assert os.path.exists(verity_key_mincrypt), 'Missing verity_key'
324 verity_key_ramdisk = os.path.join(
326 assert os.path.exists(verity_key_ramdisk), 'Missing verity_key in ramdisk'
336 image_path = os.path.join(input_tmp, 'IMAGES', image)
342 if not os.path.exists(image_path):
366 image = os.path.join(input_tmp, 'IMAGES', 'vbmeta.img')
395 first_image_path = os.path.join(input_tmp, 'IMAGES', first_image_name)
396 assert os.path.isfile(first_image_path)
397 renamed_boot_image_path = os.path.join(input_tmp, 'IMAGES', 'boot.img')
398 os.rename(first_image_path, renamed_boot_image_path)
413 image = os.path.join(input_tmp, 'IMAGES', 'recovery.img')
440 if not os.path.isdir(input_tmp):
442 for name in os.listdir(input_tmp):
446 path = os.path.join(input_tmp, name, prop_file)
447 if not os.path.exists(path):