Home
last modified time | relevance | path

Searched refs:input_file (Results 1 – 25 of 26) sorted by relevance

12

/ohos5.0/build/scripts/util/
H A Dfile_utils.py34 def read_json_file(input_file): argument
35 if not os.path.exists(input_file):
36 print("file '{}' doesn't exist.".format(input_file))
41 with open(input_file, 'r') as input_f:
44 print("The file '{}' format is incorrect.".format(input_file))
47 print("read file '{}' failed.".format(input_file))
53 def read_file(input_file): argument
54 if not os.path.exists(input_file):
55 print("file '{}' doesn't exist.".format(input_file))
60 with open(input_file, 'r') as file_obj:
[all …]
H A Dzip_and_md5.py27 def _gen_signature(input_file): argument
28 if not os.path.isfile(input_file):
33 with open(input_file, 'rb') as file_obj:
/ohos5.0/foundation/arkui/ace_engine/build/tools/
H A Dbuild_resource_to_bytecode.py21 def resource_file_to_bytecode(input_dir, input_file, output_path): argument
22 with open(os.path.join(input_dir, input_file), 'rb')\
38 input_file = input_file.replace(".", "_")
39 template1 = template1.replace("$1", str(input_file)) \
42 template2 = template2.replace("$1", str(input_file)) \
58 input_dir, input_file = os.path.split(args.input)
60 resource_file_to_bytecode(input_dir, input_file, output_path)
H A Drun_objcopy.py57 input_dir, input_file = os.path.split(args.input)
67 input_file,
H A Drun_objcopy_pc_mac.py59 input_dir, input_file = os.path.split(args.input)
69 input_file,
/ohos5.0/build/ohos/packages/
H A Dgen_required_modules_list.py54 def _read_file_content(input_file: str):
55 if not os.path.exists(input_file):
56 raise Exception("file '{}' does not exist.".format(input_file))
57 data = read_json_file(input_file)
59 raise Exception("read file '{}' failed.".format(input_file))
63 def _read_file_and_get_content(input_file: str, get_arrt_name=None):
64 data = _read_file_content(input_file)
/ohos5.0/build/hb/util/
H A Dio_util.py32 def read_json_file(input_file: str) -> dict:
33 if not os.path.isfile(input_file):
36 with open(input_file, 'rb') as input_f:
56 def read_yaml_file(input_file: str):
57 if not os.path.isfile(input_file):
61 with open(input_file, 'rt', encoding='utf-8') as yaml_file:
/ohos5.0/build/tools/module_dependence/
H A Dfile_utils.py20 def read_json_file(input_file: str):
21 if not os.path.exists(input_file):
22 print("file '{}' doesn't exist.".format(input_file))
27 with open(input_file, 'r') as input_f:
30 print("The file '{}' format is incorrect.".format(input_file))
H A Dmodule_deps_tree.py25 def read_json_file(input_file: str):
26 if not os.path.exists(input_file):
27 print("file '{}' doesn't exist.".format(input_file))
32 with open(input_file, 'r') as input_f:
35 print("The file '{}' format is incorrect.".format(input_file))
/ohos5.0/base/security/selinux_adapter/scripts/selinux_check/
H A Dcheck_common.py25 def read_json_file(input_file): argument
28 with open(input_file, 'r') as input_f:
31 print('The file \'{}\' format is incorrect.'.format(input_file))
34 print('read file \'{}\' failed.'.format(input_file))
39 def read_file(input_file): argument
41 with open(input_file, 'r') as fp:
/ohos5.0/build/tools/check_deps/
H A Dcheck_deps.py22 def read_json_file(input_file: str):
23 if not os.path.exists(input_file):
24 print("file '{}' doesn't exist.".format(input_file))
29 with open(input_file, 'r') as input_f:
32 print("The file '{}' format is incorrect.".format(input_file))
/ohos5.0/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/
H A Dpre_process.py27 def handle_file_preprocess(input_file, output_file): argument
35 with open(input_file, 'r', encoding='utf-8') as infile:
49 log_info("preprocess done: " + input_file + "->" + output_file)
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/
H A Dplugin_config.py28 input_file = argv[1] + "/all_plugin_static.h.in"
33 if not os.path.isfile(input_file):
42 with open(input_file, "r") as infile:
/ohos5.0/build/lite/
H A Dutils.py45 def read_json_file(input_file: str):
46 if not os.path.exists(input_file):
47 print('file [{}] no exist.'.format(input_file))
50 with open(input_file, 'rb') as input_f:
/ohos5.0/build/scripts/
H A Dgen_sdk_build_file.py78 def gen_build_file(input_file: str, sdk_out_dir: str, generate_sig: bool,
80 data = read_json_file(input_file)
84 format(input_file))
206 def generate_sdk(input_file: str, sdk_out_dir: str, output_build_file: str, sdk_info_file: str,
209 build_file_content, sdk_info = gen_build_file(input_file, sdk_out_dir,
238 generate_sdk(args.input_file, args.sdk_out_dir, args.output_build_file,
H A Drun_objcopy.py57 input_dir, input_file = os.path.split(args.input)
67 input_file,
H A Drun_objcopy_pc_mac.py59 input_dir, input_file = os.path.split(args.input)
69 input_file,
H A Dbpf.py39 for f in options.input_file:
62 input_paths=(options.input_file + [options.clang_path]),
/ohos5.0/base/hiviewdfx/hiview/build/
H A Dgen_plugin_build.py29 def read_json_file(input_file): argument
30 if not os.path.exists(input_file):
32 print("file '{}' doesn't exist.".format(input_file))
36 with open(input_file, 'r') as input_f:
291 def generate_plugin(input_file, output_build_file, output_config_file, argument
293 data = read_json_file(input_file)
295 raise Exception("file [{}] does not exist.".format(input_file))
302 raise Exception("file [{}] content is error".format(input_file))
379 generate_plugin(args.input_file, args.plugin_build_file,
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/tools/snapshot/
H A Dframework2char.py70 …ith os.fdopen(os.open(FRAMEWORK_SNAPSHOT_FILE_PATH, input_flags, input_modes), 'rb') as input_file:
71 byte_code_buffer = input_file.read()
110 with os.fdopen(os.open(FRAMEWORK_JS_FILE_PATH, flags, modes), 'r') as input_file:
111 javascript_buffer = input_file.read()
/ohos5.0/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/
H A Dmain.py47 argument.input_file = argument.i
80 handle_file_preprocess(args.input_file, 'dump_temp.txt')
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/
H A Dtool-disassembler.md14 ark_disasm.exe [options] input_file output_file
22 | input_file | 不可缺省 | 待反汇编的方舟字节码文件路径。 |
/ohos5.0/docs/en/application-dev/arkts-utils/
H A Dtool-disassembler.md14 ark_disasm.exe [options] input_file output_file
22 | input_file | No| Path of the ARK bytecode file to be disassembled.|
/ohos5.0/build/ohos/
H A Dgenerate_part_info.py122 gen_output_file(args.part_name, args.origin_part_name, args.input_file,
/ohos5.0/base/security/selinux_adapter/scripts/
H A Dbuild_policy_api.py358 def filter_out(pattern_file, input_file): argument
362 with open(input_file, 'r', encoding='utf-8') as in_file:
367 shutil.copyfile(tmp_output.name, input_file)

12