Lines Matching refs:os
48 import os
95 if arg is not None and not os.path.exists(arg):
109 if arg != "ON_SERVER" and not os.path.isfile(arg):
124 if os.path.exists(arg):
125 if os.path.isfile(arg):
135 os.makedirs(arg)
155 unpack_package = os.path.join(OPTIONS_MANAGER.update_package, arg)
156 if not os.path.isfile(unpack_package):
279 if os.path.isdir(source_package):
339 xml_path = os.path.join(OPTIONS_MANAGER.source_package_dir,
344 if os.path.exists(xml_path):
373 os.path.join(OPTIONS_MANAGER.target_package_config_dir,
392 os.path.join(OPTIONS_MANAGER.target_package_config_dir,
406 if os.path.isdir(target_package):
408 temp_dir_list = os.listdir(target_package)
411 os.path.join(target_package, UPDATER_CONFIG)
426 os.path.join(unzip_dir, UPDATER_CONFIG)
482 if not os.path.exists(image_path):
496 if not os.path.exists(map_path):
527 src_size = os.path.getsize(src_image_path)
529 tgt_size = os.path.getsize(tgt_image_path)
545 image_patch_cmd = verse_script.image_patch(partition, os.path.getsize(src_image_path),
546 get_file_sha256(src_image_path), os.path.getsize(tgt_image_path),
605 os.path.join(source_package_dir,
608 os.path.join(source_package_dir,
611 os.path.join(target_package_dir,
614 os.path.join(target_package_dir,
628 if not os.path.exists(each_src_map_path):
635 if not os.path.exists(each_tgt_map_path):
719 (os.path.getsize(new_dat_file_obj.name) == num * PER_BLOCK_SIZE) and \
720 (os.path.getsize(patch_dat_file_obj.name) == diff_num)