Lines Matching refs:path

43     def is_in_component_dir(path: str) -> bool:
44 return _recurrent_search_bundle_file(path)[0]
48 build_configs_path = os.path.join(
50 if os.path.exists(build_configs_path):
57 def get_component_name(path: str) -> str:
58 found_bundle_file, bundle_path = _recurrent_search_bundle_file(path)
66 def get_component(path: str) -> str:
67 found_bundle_file, bundle_path = _recurrent_search_bundle_file(path)
70 return data['component']['name'], os.path.dirname(bundle_path)
77 default_deps_path = os.path.join(
84 root_path = os.path.join(out_path, "build_configs")
90 file_path = os.path.join(root_path, file)
91 if not os.path.isdir(file_path):
94 if os.path.isdir(os.path.join(file_path, component)) and component == component_name:
96 os.path.join(file_path, component, "BUILD.gn"))
105 path, target = target_path.split(":")
118 def _recurrent_search_bundle_file(path: str):
119 cur_dir = path
121 bundle_json = os.path.join(
123 if os.path.exists(bundle_json):
125 cur_dir = os.path.dirname(cur_dir)
129 def get_all_bundle_path(path):
131 for root, dirnames, filenames in os.walk(path):
132 if root == os.path.join(path, "out") or root == os.path.join(path, ".repo"):
136 bundle_json = os.path.join(root, filename)
145 bundles_path[data["component"]["name"]] = os.path.dirname(bundle_json)
151 default_deps_out_file = os.path.join(root_path, "out", "preloader", "default_deps.json")
152 default_deps_file = os.path.join(root_path, "build", "indep_configs", "variants", "common", 'default_deps.json')
156 part_white_list_path = os.path.join(root_path, "build", "indep_configs", "config",
163 preloader_path = os.path.join(root_path, "out", "preloader")