Lines Matching refs:path
40 script_dir = os.path.dirname(os.path.realpath(__file__))
43 lib_path = os.path.join(script_dir, "bin", system_type,
46 lib_path = os.path.join(script_dir, "bin", system_type,
49 lib_path = os.path.join(script_dir, "bin", system_type,
54 if not os.path.exists(lib_path):
61 if os.path.isfile(files):
63 elif os.path.isdir(files):
67 def is_elf_file(path): argument
68 if os.path.isfile(path):
69 with open(path, 'rb') as file_bin:
97 script_dir = os.path.dirname(os.path.realpath(__file__))
98 arch_dir = os.path.join(script_dir, "bin", "ohos", arch)
99 if not os.path.isdir(arch_dir):
101 binary_path = os.path.join(arch_dir, binary_name)
102 if not os.path.isfile(binary_path):
134 path = os.path.realpath(arg)
135 if not os.path.isdir(path):
136 raise argparse.ArgumentTypeError('{} is not a directory.'.format(path))
137 return path
141 path = os.path.realpath(arg)
142 if not os.path.isfile(path):
143 raise argparse.ArgumentTypeError('{} is not a file.'.format(path))
144 return path
177 path = os.path.join(tool_path, path_in_tool)
178 if executable_file_available(path, test_option):
179 return path
182 path = os.path.join('../..', path_in_tool)
183 if executable_file_available(path, test_option):
184 return path
263 def __init__(self, path, lib_name): argument
264 self.path = path
284 self.__append_host_local_lib(os.path.join(root, name),
289 if os.path.exists(BUILD_ID_FILE):
293 if os.path.isfile(BUILD_ID_FILE):
307 self.hdc.check_run(['file send', elf_struct.path,
328 def __append_host_local_lib(self, path, name): argument
329 build_id = get_build_id(path)
332 arch = get_architecture(path)
344 self.build_id_map_of_host[build_id] = ElfStruct(path,
347 elf_struct.path = path
518 full_path = os.path.join(current_path, self.args.output_perf_data)