Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 241) sorted by relevance

12345678910

/build/hb/resources/
Dglobal_var.py22 CURRENT_OHOS_ROOT = os.path.dirname(os.path.dirname(
23 os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
24 CURRENT_BUILD_DIR = os.path.join(CURRENT_OHOS_ROOT, 'build')
25 CURRENT_HB_DIR = os.path.join(CURRENT_BUILD_DIR, 'hb')
26 DEFAULT_CCACHE_DIR = os.path.join(CURRENT_OHOS_ROOT, '.ccache')
28 ARGS_DIR = os.path.join(CURRENT_HB_DIR, 'resources/args')
30 DEFAULT_BUILD_ARGS = os.path.join(
32 DEFAULT_SET_ARGS = os.path.join(
34 DEFAULT_CLEAN_ARGS = os.path.join(
36 DEFAULT_ENV_ARGS = os.path.join(
[all …]
/build/ohos/sdk/
Dconvert_permissions.py22 OUTPATH = os.path.join(OUT_ROOT, "public_interface/sdk-js")
23 API_PATH = os.path.join(OUTPATH, "api")
24 API_GEN_PATH = os.path.join(OUTPATH, "build-tools/api")
28 source = os.path.join(source_root, INTERFACE_PATH)
29 dest = os.path.join(source_root, OUTPATH)
30 if os.path.exists(dest) is False:
35 source = os.path.join(source_root, API_PATH)
36 dest = os.path.join(source_root, API_GEN_PATH)
37 if os.path.exists(dest) is False:
42 permission_convert_dir = os.path.join(OUTPATH, "build-tools", "permissions_converter")
[all …]
Dparse_public_sdk.py21 sys.path.append(
22 os.path.dirname(
23 os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
28 OUTPATH = os.path.join(OUT_ROOT, "public_interface/sdk-js")
29 API_MODIFY_DIR = os.path.join(OUTPATH, "build-tools")
30 API_MODIFY_TOOL = os.path.join(API_MODIFY_DIR, "delete_systemapi_plugin.js")
31 API_PATH = os.path.join(OUTPATH, "api")
32 API_GEN_PATH = os.path.join(OUTPATH, "build-tools/api")
37 source = os.path.join(source_root, INTERFACE_PATH)
38 dest = os.path.join(source_root, OUTPATH)
[all …]
/build/
Dprint_python_deps.py20 _SRC_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
33 for path in module_paths:
34 if path == __file__:
36 path = os.path.abspath(path)
37 if not path.startswith(_SRC_ROOT):
40 if (path.endswith('.pyc')
41 or (path.endswith('c') and not os.path.splitext(path)[1])):
42 path = path[:-1]
43 src_paths.add(path)
51 root = os.path.relpath(options.root, _SRC_ROOT)
[all …]
/build/scripts/util/
Dmd5_check.py27 for path in input_paths:
28 if _is_zip_file(path):
29 entries = _extract_zip_entries(path)
30 new_metadata.add_zip_file(path, entries)
32 new_metadata.add_file(path, _md5_for_path(path))
38 if os.path.exists(record_path):
92 x for x in output_paths if force or not os.path.exists(x)
141 def _get_old_tag(self, path, subpath=None): argument
142 return self.old_metadata and self.old_metadata.get_tag(path, subpath)
162 for path in self.iter_modified_paths():
[all …]
Dpycache.py32 if os.path.exists(cache_artifact):
33 os.makedirs(os.path.dirname(obj), exist_ok=True)
38 elif os.path.exists(possible_dir_cache_artifact):
55 cache_dir = os.path.dirname(cache_artifact)
58 if not os.path.exists(obj):
61 if os.path.isdir(obj):
82 for path in output_paths:
84 prefix, path))
85 result = self.storage.retrieve_object(cache_artifact, path)
96 for path in output_paths:
[all …]
Dbuild_utils.py27 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))
37 os.path.abspath(
38 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir,
62 if os.path.exists(dir_path):
66 def touch(path, fail_if_missing=False): argument
67 if fail_if_missing and not os.path.exists(path):
68 raise Exception(path + ' doesn\'t exist.')
70 make_directory(os.path.dirname(path))
71 with open(path, 'a'):
72 os.utime(path, None)
[all …]
/build/lite/testfwk/
Dlite_testcase_resource_copy.py21 sys.path.append(
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):
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)
[all …]
/build/lite/
Dgen_module_notice_file.py29 return os.path.exists(os.path.join(src_path, '.gn'))
33 if (not os.path.isdir(src_dir)) or is_top_dir(src_dir):
36 file_path = os.path.join(src_dir, file)
37 if os.path.isfile(file_path):
38 if os.path.basename(file_path) == target_cfg:
40 return find_config_parent_file(os.path.dirname(src_dir), target_cfg)
45 if not os.path.exists(readme_file_path) or os.path.isdir(readme_file_path):
61 license_file_path = os.path.join(os.path.dirname(readme_file_path),
63 if not os.path.exists(license_file_path):
66 copyright_file_path = os.path.join(os.path.dirname(copyright_file),
[all …]
/build/ohos/images/
Dbuild_image.py23 sys.path.append(
24 os.path.dirname(os.path.dirname(os.path.dirname(
25 os.path.abspath(__file__)))))
31 if os.path.exists(userdata_path):
37 root_dir = os.path.join(os.path.dirname(system_path), 'root')
38 if os.path.exists(root_dir):
46 os.makedirs(os.path.join(root_dir, _dir_name), exist_ok=True)
47 os.symlink('/system/bin', os.path.join(root_dir, 'bin'))
48 os.symlink('/system/bin/init', os.path.join(root_dir, 'init'))
49 os.symlink('/system/etc', os.path.join(root_dir, 'etc'))
[all …]
/build/scripts/
Ddownload_sdk.py32 build_scripts = os.path.join(
34 if os.path.exists(build_scripts):
36 cur_dir = os.path.dirname(cur_dir)
56 filename = os.path.basename(download_url)
58 if not os.path.isfile(os.path.join(savepath, filename)):
60 urlretrieve(download_url, os.path.join(
66 filesize = os.path.getsize(os.path.join(savepath, filename))
72 target_dir = os.path.dirname(filename)
74 if not os.path.exists(target_dir):
79 if os.path.exists(os.path.join(target_dir, "daily_build.log")):
[all …]
Dcode_release.py23 sys.path.append(
24 os.path.abspath(os.path.dirname(os.path.abspath(
25 os.path.dirname(__file__)))))
33 if not os.path.exists(opensource_config_file):
37 src_dir = os.path.dirname(opensource_config_file)
38 dst_dir = os.path.join(package_dir, os.path.relpath(src_dir, top_dir))
41 if os.path.exists(dst_dir):
49 release_file = os.path.join(dst_dir, RELEASE_FILENAME)
55 if not os.path.exists(opensource_config_file):
75 file_dir_path = os.path.join(scan_dir, file_dir_name)
[all …]
Dinterface_mgr.py27 if os.path.isfile(filename):
44 for path, _, files in os.walk(file_dir):
47 x_file = os.path.relpath(os.path.join(path, file),
54 if not os.path.exists(subsystem_sdk_out_dir) or not os.path.isdir(
62 module_dir = os.path.join(subsystem_sdk_out_dir, module_name)
63 if not os.path.exists(module_dir) or not os.path.isdir(module_dir):
71 os.path.join(module_dir, h_file))
74 check_file = os.path.join(sig_file_gen_dir, module_name,
76 file_dir = os.path.dirname(os.path.abspath(check_file))
77 if not os.path.exists(file_dir):
[all …]
Dninja_rules_parser.py20 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
25 subninja_build_file = os.path.join(build_dir, subninja_build_file)
26 if not os.path.exists(subninja_build_file):
40 _, extension = os.path.splitext(build_label)
46 target_filename = os.path.basename(label_target)
47 label_name, _ = os.path.splitext(target_filename)
55 target_filename = os.path.basename(build_label)
56 label_name, _ = os.path.splitext(target_filename)
60 _path = os.path.dirname(build_label)[start_index:]
70 if not os.path.exists(toolchain_ninja_file):
[all …]
/build/hb/util/
Dcomponent_util.py30 def is_in_component_dir(path: str) -> bool:
31 return _recurrent_search_bundle_file(path)[0]
35 build_configs_path = os.path.join(
37 if os.path.exists(build_configs_path):
44 def get_component_name(path: str) -> str:
45 found_bundle_file, bundle_path = _recurrent_search_bundle_file(path)
55 root_path = os.path.join(out_path, "build_configs")
61 file_path = os.path.join(root_path, file)
62 if not os.path.isdir(file_path):
65 … if os.path.isdir(os.path.join(file_path, component)) and component == component_name:
[all …]
Ddevice_util.py28 cwd_pardir = os.path.dirname(os.path.dirname(os.getcwd()))
29 return os.path.basename(cwd_pardir) == 'device'
33 return os.path.isdir(kernel_path) and\
50 kernel_path = os.path.join(board_path, kernel)
52 if os.path.isdir(kernel_path):
53 kernel_config = os.path.join(kernel_path, 'config.gni')
54 if not os.path.isfile(kernel_config):
86 def check_path(path): argument
87 if os.path.isdir(path) or os.path.isfile(path):
94 config = os.path.join(config_path, 'config.gni')
[all …]
/build/ohos/testfwk/
Dtestcase_resource_copy.py22 sys.path.append(
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):
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)
[all …]
Dtest_js_stage_file_copy.py29 if os.path.exists(os.path.join(project_path, "Test.json")):
30 module_info_file = os.path.join(testcases_dir, module_name + '.moduleInfo')
32 if os.path.exists(module_info_file):
42 json_dir = os.path.dirname(archive_testfile)
43 prefix_dir = os.path.join(test_type, module_out_path)
44 if os.path.exists(os.path.join(project_path, "Test.json")):
45 shutil.copy2(os.path.join(project_path, "Test.json"),
46 os.path.join(json_dir, (build_target_name + ".json")))
47 json_file_path = os.path.join(json_dir, (build_target_name + ".json"))
48 if os.path.exists(json_file_path):
[all …]
Dtest_js_file_copy.py21 sys.path.append(
22 os.path.dirname(os.path.dirname(os.path.dirname(
23 os.path.abspath(__file__)))))
31 template_path = os.path.join(template_path, "src")
33 if not os.path.exists(suite_path):
36 if os.path.exists(target_path):
39 shutil.copytree(template_path, os.path.join(target_path, "src"))
41 js_dest_path = os.path.join(target_path,
47 file_list.append(os.path.join(root, item))
55 with open(os.path.join(dest_path, "List.test.js"), 'a') \
[all …]
/build/ohos/packages/
Dmodules_install.py21 sys.path.append(
22 os.path.dirname(os.path.dirname(os.path.dirname(
23 os.path.abspath(__file__)))))
92 shutil.copy(source, os.path.join(platform_installed_path, system_path))
105 if not os.path.exists(source):
113 if os.path.isfile(source):
114 dest_dir = os.path.join(platform_installed_path,
115 os.path.dirname(dest))
116 elif os.path.isdir(source):
117 dest_dir = os.path.join(platform_installed_path, dest)
[all …]
Dsystem_gzip_package.py22 sys.path.append(
23 os.path.dirname(os.path.dirname(os.path.dirname(
24 os.path.abspath(__file__)))))
29 if not os.path.exists(src_image_path):
35 src_dir = os.path.join(root, dir_name)
36 dir_relpath = os.path.relpath(src_dir, src_image_path)
37 dest_dir_path = os.path.join(dest_image_path, dir_relpath)
38 if not os.path.exists(dest_dir_path):
42 src_file_path = os.path.join(root, file_name)
43 file_relpath = os.path.relpath(src_file_path, src_image_path)
[all …]
Dresources_collect.py21 sys.path.append(
22 os.path.dirname(os.path.dirname(os.path.dirname(
23 os.path.abspath(__file__)))))
48 _variant_dir = os.path.join(_toolchain_name, resources_dir,
51 _variant_dir = os.path.join(resources_dir, part_name)
52 if not os.path.exists(_variant_dir):
55 _src_dir_name = os.path.basename(resources_dir)
56 package_output_dir = os.path.join(output_base_dir, _src_dir_name)
57 dest_dir = os.path.join(package_output_dir, origin_part_name)
58 if os.path.exists(dest_dir):
[all …]
Dbackup_restore_artifact.py28 str_out_basename = os.path.basename(args.output_dir)
29 if (str_out_basename == "backup" and not os.path.exists(args.output_dir)):
35 if os.path.exists(source):
38 output_path = os.path.join(
39 args.output_dir, os.path.basename(source))
42 str_out_basename, os.path.basename(source))
45 str_out_basename, os.path.basename(source))
46 asan_symbols_backup_path = source.replace(os.path.basename(
47 source), os.path.join(os.path.basename(source), "asan"))
/build/ohos/notice/
Dcollect_module_notice_file.py21 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))
37 return os.path.exists(os.path.join(current_dir, '.gn'))
44 candidate = os.path.join(current_dir, file)
45 if os.path.isfile(os.path.join(current_dir, file)):
46 return os.path.join(candidate)
47 return find_license_recursively(os.path.dirname(current_dir),
54 candidate = os.path.join(current_dir, README_FILE_NAME)
55 if os.path.isfile(candidate):
56 return os.path.join(candidate)
57 return find_opensource_recursively(os.path.dirname(current_dir))
[all …]
/build/tests/unittest/part_replace/
Dtest_set.py34 build_scripts = os.path.join(
36 if os.path.exists(build_scripts):
38 cur_dir = os.path.dirname(cur_dir)
50 product_dest_path = os.path.join(top_dir, "vendor/hihope/rk3568/config.json")
51 subsystem_config_path = os.path.join(top_dir, "build/subsystem_config.json")
52 subsystem_components_whitelist_path = os.path.join(top_dir, "build/subsystem_compoents_whitelist.js…
53 testpart_dest_path = os.path.join(top_dir, "vendor/testpart")
54 origin_component_path = os.path.join(
56 component_a_path = os.path.join(top_dir, "foundation/arkui/component_a")
60 if os.path.exists("{}.backup".format(product_dest_path)):
[all …]

12345678910