Lines Matching refs:os
16 import os
91 if not os.path.exists(package_name_path):
92 os.mkdir(package_name_path)
95 create_file(os.path.join(package_name_path, "system.img"), get_target_vendor_data())
106 create_file(os.path.join(package_name_path, "vendor.img"), vendor_content)
108 create_file(os.path.join(package_name_path, "updater_binary"), UPDATER_BINARY_DATA)
111 create_file(os.path.join(package_name_path, "uImage"), get_target_vendor_data())
112 create_file(os.path.join(package_name_path, "updater.img"), get_target_vendor_data())
113 create_file(os.path.join(package_name_path, "updater_b.img"), get_target_vendor_data())
114 create_file(os.path.join(package_name_path, "updater_uImage"), get_target_vendor_data())
117 if not os.path.exists(updater_config_path):
118 os.mkdir(updater_config_path)
119 create_file(os.path.join(updater_config_path, "BOARD.list"), BOARD_LIST_DATA)
121 create_file(os.path.join(updater_config_path, "VERSION.mbn"), VERSION_MBN_DATA)
133 create_file(os.path.join(updater_config_path, "updater_specified_config.xml"), xml_content)
142 for home, dirs, files in os.walk(package_name_path):
144 package_zip.write(os.path.join(home, each_file_name))
146 package_zip.write(os.path.join(home, each_dir_name))
195 if os.path.exists("./%s" % package_name):
197 if os.path.exists("./%s.zip" % package_name):
198 os.remove("./%s.zip" % package_name)
199 if os.path.exists("./partition_file.xml"):
200 os.remove("./partition_file.xml")
201 if os.path.exists("./rsa_private_key2048.pem"):
202 os.remove("./rsa_private_key2048.pem")