Lines Matching refs:os

18 import os
60 dependences_path = os.path.join(_path, 'dependences.json')
67 dependences_json[part_name]['installPath'] + os.sep + 'bundle.json')
73 for root, dirs, files in os.walk(source_code_path):
76 bundle_paths.append(os.path.join(root, file))
81 if os.path.exists(dest_dir) and os.path.islink(dest_dir):
82 os.unlink(dest_dir)
83 if os.path.exists(dest_dir) and dest_dir != src_dir:
84 if os.path.isdir(dest_dir):
87 os.remove(dest_dir)
88 os.symlink(src_dir, dest_dir)
93 link_path = os.path.join("binarys", path)
94 if not os.path.isdir(link_path):
96 os.remove(link_path)
99 os.makedirs(link_path, exist_ok=True)
106 …musl_include_link_path = os.path.join("out", variants, "obj/binarys/third_party/musl/usr/include/a…
107 …musl_lib_link_path = os.path.join("out", variants, "obj/binarys/third_party/musl/usr/lib/arm-linux…
108 os.makedirs(musl_include_link_path, exist_ok=True)
109 os.makedirs(musl_lib_link_path, exist_ok=True)
110 _symlink_src2dest(os.path.join(musl_real_path, 'innerapis', 'includes'), musl_include_link_path)
111 _symlink_src2dest(os.path.join(musl_real_path, 'innerapis', 'libs'), musl_lib_link_path)
114 kernel_link_path = os.path.join("kernel", "linux")
115 if not os.path.isdir(kernel_link_path):
117 os.remove(kernel_link_path)
120 os.makedirs(kernel_link_path, exist_ok=True)
121 os.makedirs(kernel_link_path, exist_ok=True)
122 _symlink_src2dest(os.path.join(kernel_real_path, "innerapis"), kernel_link_path)
140 innerapi_label = "{}:{}".format(os.path.join("//binarys", path), innerapi_name)
144 …innerapi_label = "{}:{}".format(os.path.join("//binarys", path, "innerapis", innerapi_name), inner…
149 innerapi_label = "{}:{}".format(os.path.join("//binarys", path, "innerapis",
208 … utils.get_json(os.path.join(root_path, "build", "bundle.json")),
222 file_name = os.path.join(output_path, "components.json")
223 flags = os.O_WRONLY | os.O_CREAT
225 with os.fdopen(os.open(file_name, flags, modes), 'w') as f:
230 platforms_list_gni_file = os.path.join(output_path, "platforms_list.gni")
235 flags = os.O_WRONLY | os.O_CREAT
237 with os.fdopen(os.open(platforms_list_gni_file, flags, modes), 'w') as f:
242 …toolchain_json = os.path.join(_path, 'build', 'indep_configs', 'variants', 'common', 'toolchain.js…
249 binarys_path = os.path.join(hpm_cache_path, 'binarys')
252 for root, dirs, files in os.walk(binarys_path, topdown=False, followlinks=True):
254 _part_name = root.split(os.sep)[-1]
270 …project_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__f…
271 output_part_path = os.path.join(project_path, 'out', variants, 'build_configs', 'parts_info')
272 output_config_path = os.path.join(project_path, 'out', variants, 'build_configs')