Home
last modified time | relevance | path

Searched refs:relative_to (Results 1 – 25 of 28) sorted by relevance

12

/third_party/python/Lib/test/
Dtest_pathlib.py623 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/
Dcommon.py137 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/
Dcommon.py137 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/
Dupdate-zips.py34 root = pathlib.Path(__file__).parent.relative_to(os.getcwd())
49 rel = res.relative_to(datapath)
/third_party/benchmark/
D.ycm_extra_conf.py109 relative_to = DirectoryOfThisScript()
110 final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to )
/third_party/ninja/src/
Dincludes_normalize_test.cc45 const string& relative_to) { in NormalizeRelativeAndCheckNoError() argument
47 IncludesNormalize normalizer(relative_to); in NormalizeRelativeAndCheckNoError()
Dincludes_normalize-win32.cc129 IncludesNormalize::IncludesNormalize(const string& relative_to) { in IncludesNormalize() argument
131 relative_to_ = AbsPath(relative_to, &err); in IncludesNormalize()
Dincludes_normalize.h24 IncludesNormalize(const std::string& relative_to);
/third_party/protobuf/python/docs/
Dgenerate_docs.py135 package_path = module_path.parent.relative_to(PYTHON_DIR)
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/
Dfile_process.py31 return self.filename.relative_to(Path('.').resolve())
Dbase_printer.py211 return str(Path(fn).relative_to(self.cwd))
Dshared.py79 my_fn = my_fn.relative_to(root_path)
/third_party/mesa3d/src/vulkan/registry/
Dupdate-aliases.py17 VK_XML.relative_to(CWD).as_posix(),
/third_party/python/PC/layout/support/
Dfilesets.py85 (f.relative_to(root), f)
/third_party/gn/src/gn/
Dsubstitution_writer.h173 const SourceDir& relative_to);
Dsubstitution_writer.cc350 const SourceDir& relative_to) { in GetSourceSubstitution() argument
397 return RebasePath(to_rebase, relative_to, in GetSourceSubstitution()
/third_party/node/deps/v8/tools/chrome/
Dlinux_perf.py206 path_strings = map(lambda f: str(f.relative_to(old_cwd)), results)
/third_party/python/Doc/library/
Dpathlib.rst541 .. 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/
Dgather.py145 newpath = Path("fonts/") / Path(font).relative_to(tmpdir)
/third_party/python/Lib/
Dzipapp.py140 arcname = child.relative_to(source)
Dpathlib.py789 def relative_to(self, *other): member in PurePath
826 self.relative_to(*other)
/third_party/node/deps/v8/tools/release/
Dlist_deprecated.py168 options.include_dir = str((base_path / 'include').relative_to(base_path))
/third_party/skia/third_party/externals/angle2/tools/android/modularization/convenience/
Dlookup_dep.py266 cache_path = (abs_build_output_dir / 'gen' / cache_path.relative_to(_SRC_DIR))
/third_party/node/deps/v8/src/objects/
Djs-temporal-objects.cc171 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/
Dmain.py461 cdest = Path(dest).parent / Path(c).relative_to(src.parent)

12