/external/pigweed/pw_build/py/ |
D | zip_test.py | 19 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): 85 tmp_path = pathlib.Path(tmp_dir) 92 out_path = pathlib.Path(f'{tmp_path}/out/') [all …]
|
/external/angle/tools/android/modularization/convenience/ |
D | lookup_dep.py | 24 import pathlib 30 _SRC_DIR = pathlib.Path(__file__).parents[4].resolve() 58 abs_out_dir: pathlib.Path = pathlib.Path(constants.GetOutDirectory()).resolve() 106 def __init__(self, abs_build_output_dir: pathlib.Path, should_build: bool): 215 source_path = pathlib.Path(source_line.strip()) 239 def _extract_full_class_names_from_jar(abs_build_output_dir: pathlib.Path, 240 abs_jar_path: pathlib.Path) -> Set[str]: 259 def _read_jar_namelist(abs_build_output_dir: pathlib.Path, 260 abs_jar_path: pathlib.Path) -> List[str]: 281 def _is_path_relative_to(path: pathlib.Path, other: pathlib.Path) -> bool: [all …]
|
/external/pigweed/pw_package/py/pw_package/ |
D | package_manager.py | 20 import pathlib 39 def install(self, path: pathlib.Path) -> None: # pylint: disable=no-self-use 46 def remove(self, path: pathlib.Path) -> None: # pylint: disable=no-self-use 56 def status(self, path: pathlib.Path) -> bool: # pylint: disable=no-self-use 62 def info(self, path: pathlib.Path) -> Sequence[str]: # pylint: disable=no-self-use 86 def __init__(self, root: pathlib.Path): 172 def run(self, command: str, pkg_root: pathlib.Path, **kwargs) -> int: 183 type=pathlib.Path, 184 default=(pathlib.Path(os.environ['_PW_ACTUAL_ENVIRONMENT_ROOT']) /
|
D | git_repo.py | 17 import pathlib 25 PathOrStr = Union[pathlib.Path, str] 49 def status(self, path: pathlib.Path) -> bool: 68 def install(self, path: pathlib.Path) -> None:
|
/external/python/cpython3/Lib/importlib/ |
D | _common.py | 2 import pathlib 18 package_directory = pathlib.Path(spec.origin).parent 37 yield pathlib.Path(raw_path) 56 @as_file.register(pathlib.Path) 60 Degenerate behavior for pathlib.Path objects.
|
/external/python/cpython3/Doc/library/ |
D | pathlib.rst | 2 :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 552 File "pathlib.py", line 694, in relative_to [all …]
|
/external/tensorflow/tensorflow/lite/g3doc/tools/ |
D | build_java_api_docs.py | 21 import pathlib 48 DOCS_TOOLS_DIR = pathlib.Path(__file__).resolve().parent 54 merged_source = pathlib.Path(tempfile.mkdtemp()) 60 output_dir=pathlib.Path(FLAGS.output_dir), 61 site_path=pathlib.Path(FLAGS.site_path))
|
/external/python/pyfakefs/pyfakefs/ |
D | fake_pathlib.py | 13 """A fake implementation for pathlib working with FakeFilesystem. 19 If using fake_filesystem_unittest.TestCase, pathlib gets replaced 47 from pyfakefs.extra_packages import use_scandir, pathlib, pathlib2 87 accessor = pathlib._Accessor 138 flavour = pathlib._Flavour if pathlib else object 446 path_module = pathlib.Path if pathlib else object 450 """Replacement for pathlib.Path. Reimplement some methods to use 643 """Uses FakeFilesystem to provide a fake pathlib module replacement. 644 Can be used to replace both the standard `pathlib` module and the 652 PurePath = pathlib.PurePath if pathlib else object [all …]
|
D | extra_packages.py | 20 pathlib = pathlib2 variable 25 import pathlib 27 pathlib = None variable
|
/external/python/pyfakefs/pyfakefs/tests/ |
D | all_tests_without_extra_packages.py | 24 import pathlib 26 pathlib = None variable 27 extra_packages.pathlib = pathlib
|
D | fake_pathlib_test.py | 29 from pyfakefs.extra_packages import pathlib, pathlib2 48 @unittest.skipIf(pathlib is None, 'Not running without pathlib') 52 self.pathlib = pathlib or pathlib2 58 self.pathlib = fake_pathlib.FakePathlibModule(self.filesystem) 59 self.path = self.pathlib.Path 67 self.assertTrue(isinstance(path, self.pathlib.WindowsPath)) 68 self.assertTrue(isinstance(path, self.pathlib.PureWindowsPath)) 69 self.assertTrue(self.pathlib.PurePosixPath()) 70 self.assertRaises(NotImplementedError, self.pathlib.PosixPath) 72 self.assertTrue(isinstance(path, self.pathlib.PosixPath)) [all …]
|
D | dynamic_patch_test.py | 19 from pyfakefs.extra_packages import pathlib 59 @unittest.skipIf(not pathlib, 'only run if pathlib is available') 62 path = pathlib.Path(file_path)
|
D | all_tests.py | 21 from pyfakefs.extra_packages import pathlib 34 if pathlib: 57 if pathlib:
|
/external/tensorflow/tensorflow/tools/docs/ |
D | build_java_api_docs.py | 21 import pathlib 52 DOCS_TOOLS_DIR = pathlib.Path(__file__).resolve().parent 61 merged_source = pathlib.Path(tempfile.mkdtemp()) 80 output_dir=pathlib.Path(FLAGS.output_dir), 81 site_path=pathlib.Path(FLAGS.site_path))
|
D | build_cc_api_headers.py | 21 import pathlib 35 DOCS_TOOLS_DIR = pathlib.Path(__file__).resolve().parent 58 build_headers(pathlib.Path(FLAGS.output_dir))
|
/external/toolchain-utils/rust_tools/ |
D | rust_watch.py | 18 import pathlib 133 def update_git_repo(git_dir: pathlib.Path) -> None: 156 def get_new_gentoo_commits(git_dir: pathlib.Path, 192 def setup_gentoo_git_repo(git_dir: pathlib.Path) -> str: 214 def read_state(state_file: pathlib.Path) -> State: 220 def atomically_write_state(state_file: pathlib.Path, state: State) -> None: 222 temp_file = pathlib.Path(str(state_file) + '.new') 285 state_dir = pathlib.Path(opts.state_dir)
|
/external/pigweed/pw_doctor/py/pw_doctor/ |
D | doctor.py | 22 import pathlib 142 env_root = pathlib.Path(os.environ['_PW_ACTUAL_ENVIRONMENT_ROOT']) 169 root = pathlib.Path(os.environ['PW_ROOT']).resolve() 173 git_root = pathlib.Path( 188 root = pathlib.Path(os.environ['PW_ROOT']) 220 venv_path = pathlib.Path(os.environ['VIRTUAL_ENV']).resolve() 233 root = pathlib.Path(os.environ[var]).resolve() 293 root = pathlib.Path(os.environ['PW_ROOT']).resolve() 299 cipd_dir = pathlib.Path(os.environ['PW_PIGWEED_CIPD_INSTALL_DIR'])
|
/external/pigweed/pw_build/py/pw_build/ |
D | zip.py | 17 import pathlib 83 source_path = pathlib.Path(source) 84 destination_path = pathlib.PurePath(destination) 106 def zip_up_dir(source: str, source_path: pathlib.Path, destination: str, 107 destination_path: pathlib.PurePath, zip_file: zipfile.ZipFile):
|
/external/python/cpython3/Lib/test/test_zoneinfo/data/ |
D | update_test_data.py | 18 import pathlib 38 TEST_DATA_LOC = pathlib.Path(__file__).parent 42 def get_zoneinfo_path() -> pathlib.Path: 45 for path in map(pathlib.Path, zoneinfo.TZPATH):
|
/external/python/jinja/tests/ |
D | test_loader.py | 140 import pathlib 142 searchpath = pathlib.Path(self.searchpath) 148 import pathlib 150 searchpath = pathlib.Path(self.searchpath) 286 import pathlib 288 mod_loader = loaders.ModuleLoader(pathlib.Path(mod_path)) 298 import pathlib 300 mod_loader = loaders.ModuleLoader([pathlib.Path(mod_path), "/tmp/templates"])
|
/external/python/cpython2/PCbuild/ |
D | get_external.py | 5 import pathlib 38 p.add_argument('-e', '--externals-dir', type=pathlib.Path, 40 default=pathlib.Path(__file__).parent.parent / 'externals')
|
/external/python/cpython3/PCbuild/ |
D | get_external.py | 5 import pathlib 38 p.add_argument('-e', '--externals-dir', type=pathlib.Path, 40 default=pathlib.Path(__file__).parent.parent / 'externals')
|
/external/pigweed/pw_module/py/ |
D | check_test.py | 17 import pathlib 39 full_file_path = pathlib.Path(self.test_dir, path) 53 directory = str(pathlib.Path(self.test_dir, directory)) 60 directory = str(pathlib.Path(self.test_dir, directory))
|
/external/python/parse_type/tasks/ |
D | _tasklet_cleanup.py | 8 * pathlib (for ant-like wildcard patterns; since: python > 3.5) 60 import pathlib 182 """Use pathlib for ant-like patterns, like: "**/*.py" 185 :param current_dir: Current working directory (as Path, pathlib.Path, str) 189 current_dir = pathlib.Path.cwd() 190 elif not isinstance(current_dir, pathlib.Path): 192 current_dir = pathlib.Path(str(current_dir))
|
/external/python/cpython3/Lib/test/ |
D | test_mimetypes.py | 4 import pathlib 65 file = pathlib.Path(directory, "sample.mimetype") 75 file = pathlib.Path(directory, "sample.mimetype") 190 filepath = pathlib.Path(filename) 191 filepath_with_abs_dir = pathlib.Path('/dir/'+filename) 192 filepath_relative = pathlib.Path('../dir/'+filename) 193 path_dir = pathlib.Path('./')
|