MCPcopy Index your code
hub / github.com/python/cpython / isabs

Function isabs

Lib/posixpath.py:62–66  ·  view source on GitHub ↗

Test whether a path is absolute

(s, /)

Source from the content-addressed store, hash-verified

60# Trivial in Posix, harder on the Mac or MS-DOS.
61
62def isabs(s, /):
63 """Test whether a path is absolute"""
64 s = os.fspath(s)
65 sep = _get_sep(s)
66 return s.startswith(sep)
67
68
69# Join pathnames.

Callers

nothing calls this directly

Calls 2

_get_sepFunction · 0.85
startswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…