Home
last modified time | relevance | path

Searched refs:src_file (Results 1 – 5 of 5) sorted by relevance

/build/ohos/
Dcopy_files.py27 for src_file in source_files:
28 if not os.path.exists(src_file):
29 raise Exception("src file '{}' doesn't exist.".format(src_file))
30 if not os.path.isfile(src_file):
32 file_name = os.path.basename(src_file)
36 shutil.copy2(src_file, output_file)
/build/ohos/testfwk/
Dtest_py_file_copy.py29 for src_file in source_files:
30 if not os.path.exists(src_file):
31 raise Exception("src file '{}' doesn't exist.".format(src_file))
32 relative_path = os.path.relpath(src_file, target_base_dir)
37 shutil.copy2(src_file, output_file)
Dtestcase_resource_copy.py175 src_file = resource_info.get('src')
176 if not os.path.exists(src_file):
178 src_file))
182 if os.path.isdir(src_file):
183 result_files = copy_dir(src_file, dest_file)
188 shutil.copy2(src_file, dest_file)
189 if src_file:
190 result_dest_list.append(src_file)
/build/lite/testfwk/
Dlite_testcase_resource_copy.py170 src_file = resource_info.get('src')
171 if not os.path.exists(src_file):
173 src_file))
177 if os.path.isdir(src_file):
178 copy_dir(src_file, dest_file)
182 shutil.copy2(src_file, dest_file)
/build/
Dprebuilts_download.py63 def _uncompress(args, src_file, code_dir, unzip_dir, unzip_filename, mark_file_path): argument
65 if src_file[-3:] == 'zip':
66 cmd = 'unzip -o {} -d {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
67 elif src_file[-6:] == 'tar.gz':
68 cmd = 'tar -xvzf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
70 cmd = 'tar -xvf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)