Home
last modified time | relevance | path

Searched refs:src (Results 1 - 11 of 11) sorted by relevance

/build/lite/
H A Dcopy_files.py26 def copytree(src: str, dst: str, symlinks: bool = False, ignore=None):
27 src = os.path.normpath(src)
28 for item in os.listdir(src):
31 src_path = os.path.join(src, item)
48 help='src type to copy.')
50 '--src',
64 if args.src_type == "file" or os.path.isfile(args.src):
65 shutil.copy(args.src, out_dir)
68 source_dir = args.src
[all...]
/build/scripts/
H A Dcopy_ex.py18 def copy_tree(src: str,
22 """copy src/* to dest/
24 1. If src item is a symlink, and points to some item inside src,
26 2. If src item points to items outside src, then follow links to copy
28 3. Else copy src item to dest.
30 1. If src item is a symlink, then follow links to copy the original file
32 2. Else copy src item to dest.
35 with os.scandir(src) a
[all...]
H A Dcargo2gn.py323 self.main_src = re.sub(r'^/[^ ]*/registry/src/', '.../', arg)
609 src for src in self.srcs if not self.runner.should_ignore_test(src)]
613 for src in saved_srcs:
614 self.srcs = [src]
616 self.main_src = src
1040 def should_ignore_test(self, src):
1044 return (src in self.empty_tests or src i
[all...]
/build/lite/ndk/
H A Darchive_ndk.py55 src = args.src_dir
57 if not os.path.exists(src):
68 make_archive(src, dest + '-' + name + '.zip')
/build/hb/services/
H A Dhdc.py91 src = deployment.get("src", "")
93 if not src.startswith("/"):
94 src = os.path.join(os.path.dirname(bundle_file), src)
95 srcs = get_files_by_path(src)
107 send_src = self.flags_dict.get("src")
/build/lite/testfwk/
H A Dlite_testcase_resource_copy.py28 def copy_dir(src: str, dest: str):
29 if not os.path.exists(src):
30 raise Exception("src dir '{}' doesn't exist.".format(src))
34 for root, _, files in os.walk(src):
41 file_relpath = os.path.relpath(src_path, src)
88 "src":
113 _src_type = _option.attrib.get('src')
128 "resource src type '{}' not support.".format(
132 "src"
[all...]
/build/hb/util/
H A Dio_util.py73 def copy_file(src: str, dst: str):
74 return shutil.copy(src, dst)
/build/ohos/testfwk/
H A Dtestcase_resource_copy.py29 def copy_dir(src: str, dest: str) -> list:
30 if not os.path.exists(src):
31 raise Exception("src dir '{}' doesn't exist.".format(src))
36 for root, _, files in os.walk(src):
43 file_relpath = os.path.relpath(src_path, src)
92 "src":
117 _src_type = _option.attrib.get('src')
132 "resource src type '{}' not support.".format(
136 "src"
[all...]
/build/
H A Dprebuilts_config.py68 def copy_file(src, dest):
71 shutil.copy(src, dest)
74 def copy_folder(src, dest):
80 shutil.copytree(src, dest)
163 copy_folder(os.path.join(code_path, copy_entry['src']), os.path.join(code_path, copy_entry['dest']))
166 copy_folder(os.path.join(code_path, copy_ext_entry['src']), os.path.join(code_path, copy_ext_entry['dest']))
/build/ohos/notice/
H A Dcollect_module_notice_file.py253 for src in options.sources:
255 '{}.{}'.format(os.path.basename(src), 'txt'))
/build/hb/containers/
H A Darg.py369 IoUtil.copy_file(src=default_file_path, dst=args_file_path)

Completed in 6 milliseconds