Home
last modified time | relevance | path

Searched refs:temp_file (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/build/lite/
H A Dbuild_ext_components.py28 def cmd_exec(command: str, temp_file: str, error_log_path: str):
40 temp_file.close()
41 copyfile(temp_file.name, error_log_path)
42 os.remove(temp_file.name)
46 temp_file.write(f'cmd:{command}\ncost time:{end_time-start_time}\n')
67 temp_file = NamedTemporaryFile(mode='wt', delete=False)
69 status = cmd_exec(args.prebuilts, temp_file, args.out_dir[0])
76 status = cmd_exec(data, temp_file, args.out_dir[0])
83 temp_file.close()
84 copyfile(temp_file.name, args.target_dir[0])
[all …]
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
H A Dhdf_delete_handler.py57 self, driver_name, driver_config_index, temp_file, file_path): argument
63 res = temp_file.get_driver_config_str(
85 temp_file = hdf_utils.MakefileAndKconfigFileParse(
87 driver_config_index = temp_file.split_driver_start_to_end()
359 temp_file = hdf_utils.GnMkFileParse(
361 driver_config_index = temp_file.split_driver_start_to_end(
364 driver_name, driver_config_index, temp_file, file_path)
367 temp_file = hdf_utils.GnMkFileParse(
369 driver_config_index = temp_file.split_driver_start_to_end(
372 driver_name, driver_config_index, temp_file, file_path)
[all …]
/ohos5.0/build/ohos/images/mkimage/
H A Dimkcovert.py152 temp_file = imagefile + ".tempfile"
156 …with open(imagefile, 'rb') as inputrow, os.fdopen(os.open(temp_file, flags, modes), 'wb') as outpu…
162 temp_file = imagefile + ".tempfile"
182 outputrow.write("%s\n" % (get_crc_value(temp_file, blocksize)))
193 outputtemp = os.fdopen(os.open(temp_file, flags, modes), 'rb')
194 blocknum = get_block_cnt(temp_file, blocksize)
201 os.remove(temp_file)
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/linux/
H A Dmk_file_add_config.py121 temp_file = hdf_utils.MakefileAndKconfigFileParse(
124 for block_info in temp_file.split_target_block(flag_re):