Lines Matching refs:os
17 import os
22 os.path.dirname(os.path.dirname(os.path.dirname(
23 os.path.abspath(__file__)))))
29 if not os.path.exists(src):
31 if not os.path.exists(dest):
32 os.makedirs(dest, exist_ok=True)
34 for root, _, files in os.walk(src):
36 file_path = os.path.join(root, _file)
39 if os.path.islink(src_path):
41 file_relpath = os.path.relpath(src_path, src)
42 dest_path = os.path.join(dest, file_relpath)
43 dest_dir = os.path.dirname(dest_path)
44 if not os.path.exists(dest_dir):
45 os.makedirs(dest_dir, exist_ok=True)
60 _resource_src = os.path.join(test_resource_path,
62 _res_dest = os.path.join(resource_output_path, _resource_file)
64 if not os.path.exists(_resource_file):
66 _resource_file_new = os.path.join(__dir_name,
68 _resource_src_new = os.path.join(part_build_out_path,
70 if os.path.exists(_resource_src_new):
72 _res_dest = os.path.join(resource_output_path,
78 _resource_src = os.path.join(part_build_out_path,
80 _res_dest = os.path.join(resource_output_path,
89 os.path.relpath(_resource_src),
91 os.path.relpath(_res_dest)
117 _resource_src = os.path.join(test_resource_path,
119 _res_dest = os.path.join(resource_output_path,
122 _resource_src = os.path.join(part_build_out_path,
124 _res_dest = os.path.join(resource_output_path,
133 os.path.relpath(_resource_src),
135 os.path.relpath(_res_dest)
143 if not os.path.exists(resource_config_file):
162 os.path.join(resource_output_path,
163 os.path.basename(resource_config_file))
171 if not os.path.exists(src_file):
176 dest_dir = os.path.dirname(dest_file)
177 if os.path.isdir(src_file):
180 if not os.path.exists(dest_dir):
181 os.makedirs(dest_dir, exist_ok=True)
198 if not os.path.exists(resource_config_file):
203 test_resource_path = os.path.dirname(resource_config_file)