Lines Matching refs:os
17 import os
23 os.path.dirname(os.path.dirname(os.path.dirname(
24 os.path.abspath(__file__)))))
30 if not os.path.exists(src):
32 if not os.path.exists(dest):
33 os.makedirs(dest, exist_ok=True)
36 for root, _, files in os.walk(src):
38 file_path = os.path.join(root, _file)
41 if os.path.islink(src_path):
43 file_relpath = os.path.relpath(src_path, src)
44 dest_path = os.path.join(dest, file_relpath)
45 dest_dir = os.path.dirname(dest_path)
46 if not os.path.exists(dest_dir):
47 os.makedirs(dest_dir, exist_ok=True)
64 _resource_src = os.path.join(test_resource_path,
66 _res_dest = os.path.join(resource_output_path, _resource_file)
68 if not os.path.exists(_resource_file):
70 _resource_file_new = os.path.join(__dir_name,
72 _resource_src_new = os.path.join(part_build_out_path,
74 if os.path.exists(_resource_src_new):
76 _res_dest = os.path.join(resource_output_path,
82 _resource_src = os.path.join(part_build_out_path,
84 _res_dest = os.path.join(resource_output_path,
93 os.path.relpath(_resource_src),
95 os.path.relpath(_res_dest)
121 _resource_src = os.path.join(test_resource_path,
123 _res_dest = os.path.join(resource_output_path,
126 _resource_src = os.path.join(part_build_out_path,
128 _res_dest = os.path.join(resource_output_path,
137 os.path.relpath(_resource_src),
139 os.path.relpath(_res_dest)
147 if not os.path.exists(resource_config_file):
166 os.path.join(resource_output_path,
167 os.path.basename(resource_config_file))
176 if not os.path.exists(src_file):
181 dest_dir = os.path.dirname(dest_file)
182 if os.path.isdir(src_file):
186 if not os.path.exists(dest_dir):
187 os.makedirs(dest_dir, exist_ok=True)
210 subsystem_build_config_file = os.path.join('../../build/subsystem_config.json')
231 resource_config_file = os.path.join('../../', subsystem_path,
235 if not os.path.exists(resource_config_file):
238 _dir_name = os.path.dirname(resource_config_file)
240 _dir_name = os.path.dirname(_dir_name)
241 resource_config_file = os.path.join(_dir_name, config_file_name)
242 if os.path.exists(resource_config_file):
257 if not os.path.exists(resource_config_file):
266 if not os.path.exists(resource_config_file):
270 test_resource_path = os.path.dirname(resource_config_file)
284 if resource_config_file is None or not os.path.exists(
287 test_resource_path = os.path.dirname(resource_config_file)