Home
last modified time | relevance | path

Searched refs:PurePath (Results 1 – 25 of 59) sorted by relevance

123

/external/pigweed/pw_build/py/pw_build/
Dgn_writer.py20 from pathlib import PurePath, PurePosixPath
191 def __init__(self, pathname: PurePath) -> None: argument
195 self._pathname: PurePath = pathname
204 file = PurePath(*PurePath(__file__).parts[-2:])
Dzip.py89 destination_path = pathlib.PurePath(destination)
117 destination_path: pathlib.PurePath, argument
Dbazel_to_gn.py22 from pathlib import Path, PurePath, PurePosixPath
54 self._source_dirs: dict[str, PurePath] = {
98 def get_source_dir(self, name: str) -> PurePath:
121 source_dir = PurePath(match.group(2))
467 type=PurePath,
485 args.build_dir = PurePath(pw_root, 'out')
Dbazel_query.py20 from pathlib import PurePath, PurePosixPath
293 self, repo: str, source_dir: PurePath | None, fetch: bool = True
/external/python/cpython3/Lib/pathlib/
D_local.py59 class PurePath(PurePathBase): class
113 if cls is PurePath:
120 if isinstance(arg, PurePath):
194 if not isinstance(other, PurePath):
208 if not isinstance(other, PurePath) or self.parser is not other.parser:
213 if not isinstance(other, PurePath) or self.parser is not other.parser:
218 if not isinstance(other, PurePath) or self.parser is not other.parser:
223 if not isinstance(other, PurePath) or self.parser is not other.parser:
379 elif not isinstance(other, PurePath):
402 elif not isinstance(other, PurePath):
[all …]
/external/python/cpython3/Doc/library/
Dpathlib.rst25 most basic class is PurePath, which has three direct subclasses:
116 .. class:: PurePath(*pathsegments)
121 >>> PurePath('setup.py') # Running on a Unix machine
129 >>> PurePath('foo', 'some/path', 'bar')
131 >>> PurePath(Path('foo'), Path('bar'))
136 >>> PurePath()
142 >>> PurePath('/etc', '/usr', 'lib64')
157 >>> PurePath('foo//bar')
159 >>> PurePath('//foo/bar')
161 >>> PurePath('foo/./bar')
[all …]
/external/wayland-protocols/
Dimport_snapshot.py44 def __init__(self, base: pathlib.PurePath): argument
49 def base(self) -> pathlib.PurePath:
80 paths: list[pathlib.PurePath]) -> list[pathlib.Path]: argument
86 return list(pathlib.PurePath(path) for path in stdout.splitlines())
196 self._paths: list[pathlib.PurePath] | None = None
255 def git_paths(self) -> list[pathlib.PurePath]:
282 def must_ignore(path: pathlib.PurePath) -> bool: argument
/external/pigweed/pw_build/py/
Dgn_writer_test.py20 from pathlib import PurePath
183 with GnFile(PurePath(tmpdirname, 'BUILD.gn')) as build_gn:
188 filename = PurePath('pw_build', 'gn_writer.py')
Dbazel_to_gn_test.py20 from pathlib import PurePath
308 self.assertEqual(b2g.get_source_dir('foo'), PurePath(FOO_SOURCE_DIR))
309 self.assertEqual(b2g.get_source_dir('bar'), PurePath(BAR_SOURCE_DIR))
310 self.assertEqual(b2g.get_source_dir('baz'), PurePath(BAZ_SOURCE_DIR))
Dzip_test.py56 directory = pathlib.PurePath('/'.join(directories[: i + 1]))
/external/python/parse_type/tasks/_vendor/
Dpathlib.py565 class PurePath(object): class
583 if cls is PurePath:
598 if isinstance(a, PurePath):
690 if not isinstance(other, PurePath):
705 if not isinstance(other, PurePath) or self._flavour is not other._flavour:
710 if not isinstance(other, PurePath) or self._flavour is not other._flavour:
715 if not isinstance(other, PurePath) or self._flavour is not other._flavour:
720 if not isinstance(other, PurePath) or self._flavour is not other._flavour:
915 class PurePosixPath(PurePath):
920 class PureWindowsPath(PurePath):
[all …]
/external/python/cpython3/Tools/wasm/
Dwasm_build.py192 config_site: Optional[pathlib.PurePath]
194 make_wrapper: Optional[pathlib.PurePath]
198 ports: Optional[pathlib.PurePath]
199 cc: Optional[pathlib.PurePath]
372 def get_extra_paths(self) -> Iterable[pathlib.PurePath]:
532 new_path: List[pathlib.PurePath] = []
Dwasm_assets.py27 WASM_LIB = pathlib.PurePath("lib")
/external/python/pyfakefs/pyfakefs/
Dfake_pathlib.py43 from pathlib import PurePath
880 class PurePosixPath(PurePath):
899 class PureWindowsPath(PurePath):
1014 return isinstance(instance, PurePath)
1075 return isinstance(instance, PurePath)
1097 class PurePosixPath(PurePath):
1102 class PureWindowsPath(PurePath):
/external/chromium-crossbench/crossbench/
Dpath.py12 AnyPath = pathlib.PurePath
/external/python/cpython3/Doc/deprecations/
Dpending-removal-in-3.14.rst77 * :mod:`pathlib`: :meth:`~pathlib.PurePath.is_relative_to` and
78 :meth:`~pathlib.PurePath.relative_to`: passing additional arguments is
Dpending-removal-in-3.15.rst44 * :meth:`.PurePath.is_reserved`
/external/chromium-crossbench/tests/crossbench/plt/
Dhelper.py74 self.platform.path(pathlib.PurePath("foo/bar")), pathlib.PurePosixPath)
Dtest_win.py34 self.platform.path(pathlib.PurePath("foo/bar")),
/external/bazelbuild-rules_python/gazelle/modules_mapping/
Dgenerator.py115 pp = pathlib.PurePath(path)
/external/python/cpython3/Tools/peg_generator/pegen/
Dtestutil.py87 path: pathlib.PurePath, argument
/external/python/cpython3/Lib/test/test_importlib/resources/
Dutil.py106 path = pathlib.PurePath('utf-8.file')
/external/python/cpython3/Lib/test/test_pathlib/
Dtest_pathlib.py39 cls = pathlib.PurePath
61 if self.cls is pathlib.PurePath:
517 class cls(pathlib.PurePath):
1639 result = pathlib.PurePath("test") / self.CompatPath("right")
1645 pathlib.PurePath("test") / 10
1648 result = self.CompatPath("left") / pathlib.PurePath("test")
1654 10 / pathlib.PurePath("test")
/external/chromium-crossbench/tests/crossbench/
Dmock_helper.py68 if not isinstance(arg, (str, pathlib.PurePath)):
/external/python/cpython3/Lib/test/test_importlib/
Dtest_util.py462 path = pathlib.PurePath('foo', 'bar', 'baz', 'qux.py')
532 path = pathlib.PurePath('foo', 'bar', 'baz', '__pycache__',

123