/third_party/python/Lib/test/ |
D | test_pathlib.py | 623 self.assertRaises(TypeError, p.relative_to) 624 self.assertRaises(TypeError, p.relative_to, b'a') 625 self.assertEqual(p.relative_to(P()), P('a/b')) 626 self.assertEqual(p.relative_to(''), P('a/b')) 627 self.assertEqual(p.relative_to(P('a')), P('b')) 628 self.assertEqual(p.relative_to('a'), P('b')) 629 self.assertEqual(p.relative_to('a/'), P('b')) 630 self.assertEqual(p.relative_to(P('a/b')), P()) 631 self.assertEqual(p.relative_to('a/b'), P()) 633 self.assertEqual(p.relative_to('a', 'b'), P()) [all …]
|
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
D | common.py | 137 def RelativePath(path, relative_to, follow_path_symlink=True): argument 148 relative_to = os.path.realpath(relative_to) 154 != os.path.splitdrive(relative_to)[0].lower() 160 relative_to_split = relative_to.split(os.path.sep) 193 def FixIfRelativePath(path, relative_to): argument 197 return RelativePath(path, relative_to) 200 def UnrelativePath(path, relative_to): argument 204 rel_dir = os.path.dirname(relative_to)
|
/third_party/node/tools/gyp/pylib/gyp/ |
D | common.py | 137 def RelativePath(path, relative_to, follow_path_symlink=True): argument 151 relative_to = os.path.realpath(relative_to) 158 != os.path.splitdrive(relative_to)[0].lower() 164 relative_to_split = relative_to.split(os.path.sep) 197 def FixIfRelativePath(path, relative_to): argument 201 return RelativePath(path, relative_to) 204 def UnrelativePath(path, relative_to): argument 208 rel_dir = os.path.dirname(relative_to)
|
/third_party/python/Lib/test/test_importlib/ |
D | update-zips.py | 34 root = pathlib.Path(__file__).parent.relative_to(os.getcwd()) 49 rel = res.relative_to(datapath)
|
/third_party/benchmark/ |
D | .ycm_extra_conf.py | 109 relative_to = DirectoryOfThisScript() 110 final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to )
|
/third_party/ninja/src/ |
D | includes_normalize_test.cc | 45 const string& relative_to) { in NormalizeRelativeAndCheckNoError() argument 47 IncludesNormalize normalizer(relative_to); in NormalizeRelativeAndCheckNoError()
|
D | includes_normalize-win32.cc | 129 IncludesNormalize::IncludesNormalize(const string& relative_to) { in IncludesNormalize() argument 131 relative_to_ = AbsPath(relative_to, &err); in IncludesNormalize()
|
D | includes_normalize.h | 24 IncludesNormalize(const std::string& relative_to);
|
/third_party/protobuf/python/docs/ |
D | generate_docs.py | 135 package_path = module_path.parent.relative_to(PYTHON_DIR)
|
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/ |
D | file_process.py | 31 return self.filename.relative_to(Path('.').resolve())
|
D | base_printer.py | 211 return str(Path(fn).relative_to(self.cwd))
|
D | shared.py | 79 my_fn = my_fn.relative_to(root_path)
|
/third_party/mesa3d/src/vulkan/registry/ |
D | update-aliases.py | 17 VK_XML.relative_to(CWD).as_posix(),
|
/third_party/python/PC/layout/support/ |
D | filesets.py | 85 (f.relative_to(root), f)
|
/third_party/gn/src/gn/ |
D | substitution_writer.h | 173 const SourceDir& relative_to);
|
D | substitution_writer.cc | 350 const SourceDir& relative_to) { in GetSourceSubstitution() argument 397 return RebasePath(to_rebase, relative_to, in GetSourceSubstitution()
|
/third_party/node/deps/v8/tools/chrome/ |
D | linux_perf.py | 206 path_strings = map(lambda f: str(f.relative_to(old_cwd)), results)
|
/third_party/python/Doc/library/ |
D | pathlib.rst | 541 .. method:: PurePath.relative_to(*other) 547 >>> p.relative_to('/') 549 >>> p.relative_to('/etc') 551 >>> p.relative_to('/usr') 554 File "pathlib.py", line 694, in relative_to 1243 :func:`os.path.relpath` and :meth:`PurePath.relative_to`. 1267 :func:`os.path.relpath` :meth:`Path.relative_to` [#]_ 1282 .. [#] :meth:`Path.relative_to` requires ``self`` to be the subpath of the argument, but :func:`os.…
|
/third_party/notofonts/scripts/ |
D | gather.py | 145 newpath = Path("fonts/") / Path(font).relative_to(tmpdir)
|
/third_party/python/Lib/ |
D | zipapp.py | 140 arcname = child.relative_to(source)
|
D | pathlib.py | 789 def relative_to(self, *other): member in PurePath 826 self.relative_to(*other)
|
/third_party/node/deps/v8/tools/release/ |
D | list_deprecated.py | 168 options.include_dir = str((base_path / 'include').relative_to(base_path))
|
/third_party/skia/third_party/externals/angle2/tools/android/modularization/convenience/ |
D | lookup_dep.py | 266 cache_path = (abs_build_output_dir / 'gen' / cache_path.relative_to(_SRC_DIR))
|
/third_party/node/deps/v8/src/objects/ |
D | js-temporal-objects.cc | 171 int64_t* nanoseconds, Unit largest_unit, Handle<Object> relative_to, 179 Unit largest_unit, Handle<Object> relative_to, const char* method_name); 3620 Handle<JSTemporalZonedDateTime> relative_to = in BalanceDuration() local 3629 Handle<BigInt>(relative_to->nanoseconds(), isolate), in BalanceDuration() 3630 Handle<JSReceiver>(relative_to->time_zone(), isolate), in BalanceDuration() 3631 Handle<JSReceiver>(relative_to->calendar(), isolate), in BalanceDuration() 3640 Handle<BigInt>(relative_to->nanoseconds(), isolate)), in BalanceDuration() 3940 Handle<JSTemporalZonedDateTime> relative_to = in NanosecondsToDays() local 3943 Handle<BigInt> start_ns = Handle<BigInt>(relative_to->nanoseconds(), isolate); in NanosecondsToDays() 3949 isolate, Handle<BigInt>(relative_to->nanoseconds(), isolate)), in NanosecondsToDays() [all …]
|
/third_party/python/PC/layout/ |
D | main.py | 461 cdest = Path(dest).parent / Path(c).relative_to(src.parent)
|