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.py139 def RelativePath(path, relative_to, follow_path_symlink=True): argument
153 relative_to = os.path.realpath(relative_to)
159 os.path.splitdrive(relative_to)[0].lower()):
164 relative_to_split = relative_to.split(os.path.sep)
196 def FixIfRelativePath(path, relative_to): argument
200 return RelativePath(path, relative_to)
203 def UnrelativePath(path, relative_to): argument
207 rel_dir = os.path.dirname(relative_to)
/third_party/node/tools/gyp/pylib/gyp/
Dcommon.py142 def RelativePath(path, relative_to, follow_path_symlink=True): argument
156 relative_to = os.path.realpath(relative_to)
163 != os.path.splitdrive(relative_to)[0].lower()
169 relative_to_split = relative_to.split(os.path.sep)
202 def FixIfRelativePath(path, relative_to): argument
206 return RelativePath(path, relative_to)
209 def UnrelativePath(path, relative_to): argument
213 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.cc43 const string& relative_to) { in NormalizeRelativeAndCheckNoError() argument
45 IncludesNormalize normalizer(relative_to); in NormalizeRelativeAndCheckNoError()
Dincludes_normalize-win32.cc127 IncludesNormalize::IncludesNormalize(const string& relative_to) { in IncludesNormalize() argument
129 relative_to_ = AbsPath(relative_to, &err); in IncludesNormalize()
Dincludes_normalize.h25 IncludesNormalize(const string& relative_to);
/third_party/boost/tools/inspect/
Dinspector.hpp92 inline string relative_to( const path & src_arg, const path & base_arg ) in relative_to() function
Dpath_name_check.cpp85 path const relative_path( relative_to( full_path, search_root_path() ) ); in inspect()
Dapple_macro_check.cpp67 path relative( relative_to( full_path, search_root_path() ) ); in inspect()
Dlink_check.cpp126 m_paths[ relative_to( full_path, search_root_path() ) ] |= m_present; in inspect()
137 m_paths[ relative_to( full_path, search_root_path() ) ] |= m_nounlinked_errors; in inspect()
441 relative_to( target_path, search_root_path() ), 0 ); in do_url()
Dassert_macro_check.cpp73 path relative( relative_to( full_path, search_root_path() ) ); in inspect()
Dinspect.cpp139 string local( boost::inspect::relative_to( pth, search_root_path() ) ); in visit_predicate()
628 err_msg.rel_path = relative_to( full_path, search_root_path() ); in error()
699 path relative( relative_to( full_dir_path, search_root_path() ) ); in impute_library()
/third_party/protobuf/python/docs/
Dgenerate_docs.py135 package_path = module_path.parent.relative_to(PYTHON_DIR)
/third_party/python/PC/layout/support/
Dfilesets.py85 (f.relative_to(root), f)
/third_party/glib/glib/
Dgfileutils.h217 const gchar *relative_to) G_GNUC_MALLOC;
Dgfileutils.c2744 const gchar *relative_to) in g_canonicalize_filename() argument
2749 g_return_val_if_fail (relative_to == NULL || g_path_is_absolute (relative_to), NULL); in g_canonicalize_filename()
2756 if (relative_to != NULL) in g_canonicalize_filename()
2757 cwd = relative_to; in g_canonicalize_filename()
/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/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/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/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/python/PC/layout/
Dmain.py461 cdest = Path(dest).parent / Path(c).relative_to(src.parent)

12