Lines Matching full:path
29 $ apexd_host --apex_path /path/to/apex --system_path /path/to/system
48 def DirectoryType(path): argument
49 if not os.path.exists(path):
51 if not os.path.isdir(path):
52 raise argparse.ArgumentTypeError(f'{path} is not a directory')
53 return os.path.realpath(path)
56 def ExistentDirectoryType(path): argument
57 if not os.path.exists(path):
58 raise argparse.ArgumentTypeError(f'{path} is not found')
59 return DirectoryType(path)
69 help='Path to the directory where to activate APEXes',
74 help=f'Path to the directory corresponding /{part} on device',
125 exec_path = os.path.realpath(sys.argv[0])
127 script_name = os.path.basename(exec_path)[:-3]
131 tool_path = os.path.dirname(os.path.dirname(exec_path))
135 path = os.path.join(tool_path, 'bin', candidate)
136 if os.path.exists(path):
137 return path
154 os.path.join(real_path, 'apex/*.apex')
155 ) + glob.glob(os.path.join(real_path, 'apex/*.capex')):
156 path_on_device = f'/{partition}/apex/' + os.path.basename(path_on_host)
175 if os.path.exists(os.path.join(apex_dir, apex_file.name)):
184 os.path.join(apex_dir, apex_file.name),
194 apex_info_list_file = os.path.join(apex_dir, 'apex-info-list.xml')