Home
last modified time | relevance | path

Searched full:pathlib (Results 1 – 25 of 566) sorted by relevance

12345678910>>...23

/external/pigweed/pw_build/py/
Dzip_test.py19 import pathlib
35 def make_directory(parent_path: pathlib.Path, dir_name: str, filenames: list):
36 """Creates a directory and returns a pathlib.Path() of it's root dir.
48 Returns: pathlib.Path() to the newly created directory.
50 root_path = pathlib.Path(parent_path / dir_name)
56 directory = pathlib.PurePath('/'.join(directories[: i + 1]))
65 def touch(parent_dir: pathlib.Path, filename: str):
71 def get_directory_contents(path: pathlib.Path):
86 tmp_path = pathlib.Path(tmp_dir)
93 out_path = pathlib.Path(f'{tmp_path}/out/')
[all …]
/external/angle/build/android/gyp/util/
Djar_utils.py9 import pathlib
15 _SRC_PATH = pathlib.Path(__file__).resolve().parents[4]
25 def _is_relative_to(path: pathlib.Path, other_path: pathlib.Path):
26 """This replicates pathlib.Path.is_relative_to.
41 jar_path: pathlib.Path
43 build_output_dir: pathlib.Path
44 src_dir: pathlib.Path = _SRC_PATH
92 def _should_ignore(jar_path: pathlib.Path) -> bool:
99 def run_jdeps(filepath: pathlib.Path,
101 build_output_dir: pathlib.Path,
[all …]
/external/tensorflow/tensorflow/lite/g3doc/tools/
Dbuild_java_api_docs.py17 import pathlib
52 SOURCE_PATH_CORE = pathlib.Path('tensorflow/lite/java/src/main/java')
53 SOURCE_PATH_GPU = pathlib.Path(
55 SOURCE_PATH_SUPPORT = pathlib.Path('tensorflow_lite_support/java/src/java')
56 SOURCE_PATH_METADATA = pathlib.Path(
58 SOURCE_PATH_ODML = pathlib.Path('tensorflow_lite_support/odml/java/image/src')
59 SOURCE_PATH_ANDROID_SDK = pathlib.Path('android/sdk/api/26.txt')
81 def resolve_nested_dir(path: pathlib.Path, root: pathlib.Path) -> pathlib.Path:
91 def exists_maybe_nested(paths: Iterable[pathlib.Path],
92 root: pathlib.Path) -> bool:
[all …]
/external/pigweed/pw_build_mcuxpresso/py/tests/
Dcomponents_test.py16 import pathlib
58 self.assertEqual(base_path, pathlib.Path('test'))
133 include_paths, [pathlib.Path('example'), pathlib.Path('asm')]
154 [pathlib.Path('src/example'), pathlib.Path('src/asm')],
211 pathlib.Path('include/test.h'),
212 pathlib.Path('include/test_types.h'),
235 pathlib.Path('src/include/test.h'),
236 pathlib.Path('src/include/test_types.h'),
261 pathlib.Path('include/test.h'),
262 pathlib.Path('internal/test_types.h'),
[all …]
/external/pigweed/pw_package/py/pw_package/packages/
Dcrlset.py17 import pathlib
24 def crlset_tools_repo_path(path: pathlib.Path) -> pathlib.Path:
28 def crlset_exec_path(path: pathlib.Path) -> pathlib.Path:
32 def crlset_file_path(path: pathlib.Path) -> pathlib.Path:
47 def status(self, path: pathlib.Path) -> bool:
61 def install(self, path: pathlib.Path) -> None:
84 def info(self, path: pathlib.Path) -> Sequence[str]:
Dchromium_verifier.py16 import pathlib
66 chromium_verifier_install: pathlib.Path,
67 ) -> pathlib.Path:
73 chromium_verifier_repo: pathlib.Path,
74 ) -> pathlib.Path:
80 chromium_verifier_repo: pathlib.Path,
81 ) -> pathlib.Path:
129 def install(self, path: pathlib.Path) -> None:
144 def status(self, path: pathlib.Path) -> bool:
161 def info(self, path: pathlib.Path) -> Sequence[str]:
Dboringssl.py17 import pathlib
24 def boringssl_repo_path(path: pathlib.Path) -> pathlib.Path:
45 def status(self, path: pathlib.Path) -> bool:
53 def install(self, path: pathlib.Path) -> None:
68 def info(self, path: pathlib.Path) -> Sequence[str]:
/external/pigweed/pw_build_mcuxpresso/py/pw_build_mcuxpresso/
Dcomponents.py18 import pathlib
37 name: str, val: List[pathlib.Path], path_prefix: Optional[str] = None
49 ) -> Tuple[Optional[xml.etree.ElementTree.Element], Optional[pathlib.Path]]:
69 base_path = pathlib.Path(component.attrib['package_base_path'])
120 ) -> List[pathlib.Path]:
141 include_paths: List[pathlib.Path] = []
154 base_path: Optional[pathlib.Path],
155 ) -> pathlib.Path:
168 path = pathlib.Path(include_path.attrib['relative_path'])
176 ) -> List[pathlib.Path]:
[all …]
/external/pigweed/pw_presubmit/py/pw_presubmit/
Downers_checks.py24 import pathlib
122 path: pathlib.Path
127 def __init__(self, path: pathlib.Path) -> None:
139 def load_owners_file(owners_file: pathlib.Path) -> List[str]:
316 def __complete_path(self, sub_owners_file_path) -> pathlib.Path:
327 def get_dependencies(self) -> List[pathlib.Path]:
366 def resolve_owners_tree(root_owners: pathlib.Path) -> List[OwnersFile]:
370 checked: Set[pathlib.Path] = set()
396 func, list_or_path: Union[Iterable[pathlib.Path], pathlib.Path]
397 ) -> Dict[pathlib.Path, str]:
[all …]
/external/pigweed/pw_stm32cube_build/py/pw_stm32cube_build/
D__main__.py18 import pathlib
47 gen_file_list_parser.add_argument('stm32cube_dir', type=pathlib.Path)
52 find_files_parser.add_argument('stm32cube_dir', type=pathlib.Path)
59 icf_to_ld_parser.add_argument('icf_path', type=pathlib.Path)
61 '--ld-path', nargs=1, default=None, type=pathlib.Path
67 inject_init_parser.add_argument('in_startup_path', type=pathlib.Path)
69 '--out-startup-path', nargs=1, default=None, type=pathlib.Path
Dfind_files.py18 import pathlib
133 product_name: str, files: List[str], stm32cube_path: pathlib.Path
134 ) -> Tuple[Optional[pathlib.Path], Optional[pathlib.Path]]:
161 lambda x: match_filename(product_name, pathlib.Path(x).name),
188 product_name: str, files: List[str], stm32cube_path: pathlib.Path
189 ) -> pathlib.Path:
235 def get_include_dirs(stm32cube_path: pathlib.Path) -> List[pathlib.Path]:
241 files: List[str], stm32cube_path: pathlib.Path
274 def parse_files_txt(stm32cube_path: pathlib.Path) -> List[str]:
298 def find_files(stm32cube_path: pathlib.Path, product_str: str, init: bool):
/external/python/pyfakefs/pyfakefs/
Dfake_pathlib.py13 """A fake implementation for pathlib working with FakeFilesystem.
19 If using fake_filesystem_unittest.TestCase, pathlib gets replaced
35 import pathlib
36 from pathlib import PurePath
82 accessor = pathlib._Accessor # type: ignore [attr-defined]
161 flavour = pathlib._Flavour # type: ignore [attr-defined]
469 class FakePath(pathlib.Path):
470 """Replacement for pathlib.Path. Reimplement some methods to use
700 """Uses FakeFilesystem to provide a fake pathlib module replacement.
701 Can be used to replace both the standard `pathlib` module and the
[all …]
/external/pigweed/pw_package/py/pw_package/
Dpackage_manager.py20 import pathlib
46 self, path: pathlib.Path
54 def remove(self, path: pathlib.Path) -> None: # pylint: disable=no-self-use
66 path: pathlib.Path, # pylint: disable=unused-argument
76 path: pathlib.Path, # pylint: disable=unused-argument
108 def __init__(self, root: pathlib.Path):
211 def run(self, command: str, pkg_root: pathlib.Path, **kwargs) -> int:
222 type=pathlib.Path,
223 default=pathlib.Path(os.environ['PW_PACKAGE_ROOT']),
Dgit_repo.py17 import pathlib
25 PathOrStr = Union[pathlib.Path, str]
63 def status(self, path: pathlib.Path) -> bool:
96 def install(self, path: pathlib.Path) -> None:
110 def checkout_full(self, path: pathlib.Path) -> None:
121 def checkout_sparse(self, path: pathlib.Path) -> None:
136 def check_sparse_list(self, path: pathlib.Path) -> bool:
/external/angle/build/android/gyp/
Dbytecode_processor.py12 import pathlib
22 _SRC_PATH = pathlib.Path(build_utils.DIR_SOURCE_ROOT).resolve()
39 output = jar_utils.run_jdeps(build_output_dir=pathlib.Path(output_dir),
40 filepath=pathlib.Path(jar_path))
97 build_output_dir=pathlib.Path(output_dir), jar_path=pathlib.Path(jar))
104 build_output_dir=pathlib.Path(output_dir), jar_path=pathlib.Path(jar))
112 build_output_dir=pathlib.Path(output_dir), jar_path=pathlib.Path(jar))
173 class_lookup_index = dep_utils.ClassLookupIndex(pathlib.Path(output_dir),
/external/python/cpython3/Doc/library/
Dpathlib.rst2 :mod:`pathlib` --- Object-oriented filesystem paths
5 .. module:: pathlib
10 **Source code:** :source:`Lib/pathlib.py`
22 .. image:: pathlib-inheritance.png
39 :pep:`428`: The pathlib module -- object-oriented filesystem paths.
51 >>> from pathlib import Path
64 PosixPath('pathlib.py'), PosixPath('docs/conf.py'),
65 PosixPath('build/lib/pathlib.py')]
276 from pathlib import PurePath, PurePosixPath, PureWindowsPath
554 File "pathlib.py", line 694, in relative_to
[all …]
/external/pigweed/pw_toolchain/py/
Dclang_tidy_test.py17 import pathlib
32 pathlib.Path('..').joinpath('third_party').joinpath('somefile.cc')
34 source_root = pathlib.Path('..')
57 pathlib.Path('..').joinpath('third_party').joinpath('somefile.cc')
59 source_root = pathlib.Path('..')
/external/python/pyfakefs/pyfakefs/tests/
Dimport_as_example.py18 import pathlib
27 from pathlib import Path
41 # tests patching Path imported from pathlib
60 # tests patching pathlib
61 return pathlib.Path(filepath).exists()
/external/tensorflow/tensorflow/tools/docs/
Dbuild_java_api_docs.py16 import pathlib
47 DOCS_TOOLS_DIR = pathlib.Path(__file__).resolve().parent
56 merged_source = pathlib.Path(tempfile.mkdtemp())
75 output_dir=pathlib.Path(FLAGS.output_dir),
76 site_path=pathlib.Path(FLAGS.site_path))
/external/pigweed/pw_doctor/py/pw_doctor/
Ddoctor.py22 import pathlib
164 env_root = pathlib.Path(os.environ['_PW_ACTUAL_ENVIRONMENT_ROOT'])
198 root = pathlib.Path(os.environ['PW_ROOT']).resolve()
208 git_root = pathlib.Path(
227 root = pathlib.Path(os.environ['PW_ROOT'])
265 venv_path = pathlib.Path(os.environ['VIRTUAL_ENV']).resolve()
278 root = pathlib.Path(os.environ[var]).resolve()
347 cipd_dir = pathlib.Path(os.environ['PW_CIPD_INSTALL_DIR'])
350 json_paths = [pathlib.Path(x) for x in json.load(ins)]
443 install_path = pathlib.Path(
[all …]
/external/crosvm/tools/
Dbench8 import pathlib
80 abs_seccomp_output_dir = pathlib.Path(log_seccomp_output_dir).absolute()
89 strace_out_path = pathlib.Path(tempdir) / "strace_out"
97 pathlib.Path(tempdir) / "crosvm.log"
105 with open(pathlib.Path(tempdir) / "crosvm.log", "r") as f:
111 strace_log = pathlib.Path(
/external/pigweed/pw_presubmit/py/
Dgit_repo_test.py19 import pathlib
28 GIT_ROOT = pathlib.Path("/dev/null/test")
30 pathlib.Path("third_party/pigweed"),
31 pathlib.Path("vendor/anycom/p1"),
32 pathlib.Path("vendor/anycom/p2"),
/external/python/cpython3/Lib/test/test_importlib/
Dupdate-zips.py13 import pathlib
34 root = pathlib.Path(__file__).parent.relative_to(os.getcwd())
38 dst = 'ziptestdata' / pathlib.PurePosixPath(rel.as_posix())
48 res = pathlib.Path(dirpath) / filename
/external/python/setuptools/setuptools/_vendor/importlib_resources/tests/
Dupdate-zips.py13 import pathlib
34 root = pathlib.Path(__file__).parent.relative_to(os.getcwd())
38 dst = 'ziptestdata' / pathlib.PurePosixPath(rel.as_posix())
48 res = pathlib.Path(dirpath) / filename
/external/python/setuptools/pkg_resources/_vendor/importlib_resources/tests/
Dupdate-zips.py13 import pathlib
34 root = pathlib.Path(__file__).parent.relative_to(os.getcwd())
38 dst = 'ziptestdata' / pathlib.PurePosixPath(rel.as_posix())
48 res = pathlib.Path(dirpath) / filename

12345678910>>...23