/ohos5.0/build/scripts/util/ |
H A D | file_utils.py | 34 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 D | zip_and_md5.py | 27 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 D | build_resource_to_bytecode.py | 21 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 D | run_objcopy.py | 57 input_dir, input_file = os.path.split(args.input) 67 input_file,
|
H A D | run_objcopy_pc_mac.py | 59 input_dir, input_file = os.path.split(args.input) 69 input_file,
|
/ohos5.0/build/ohos/packages/ |
H A D | gen_required_modules_list.py | 54 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 D | io_util.py | 32 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 D | file_utils.py | 20 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 D | module_deps_tree.py | 25 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 D | check_common.py | 25 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 D | check_deps.py | 22 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 D | pre_process.py | 27 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 D | plugin_config.py | 28 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 D | utils.py | 45 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 D | gen_sdk_build_file.py | 78 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 D | run_objcopy.py | 57 input_dir, input_file = os.path.split(args.input) 67 input_file,
|
H A D | run_objcopy_pc_mac.py | 59 input_dir, input_file = os.path.split(args.input) 69 input_file,
|
H A D | bpf.py | 39 for f in options.input_file: 62 input_paths=(options.input_file + [options.clang_path]),
|
/ohos5.0/base/hiviewdfx/hiview/build/ |
H A D | gen_plugin_build.py | 29 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 D | framework2char.py | 70 …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 D | main.py | 47 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 D | tool-disassembler.md | 14 ark_disasm.exe [options] input_file output_file 22 | input_file | 不可缺省 | 待反汇编的方舟字节码文件路径。 |
|
/ohos5.0/docs/en/application-dev/arkts-utils/ |
H A D | tool-disassembler.md | 14 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 D | generate_part_info.py | 122 gen_output_file(args.part_name, args.origin_part_name, args.input_file,
|
/ohos5.0/base/security/selinux_adapter/scripts/ |
H A D | build_policy_api.py | 358 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)
|