MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / isabs

Function isabs

tools/python-3.11.9-amd64/Lib/posixpath.py:60–64  ·  view source on GitHub ↗

Test whether a path is absolute

(s)

Source from the content-addressed store, hash-verified

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

Callers 2

abspathFunction · 0.70
_joinrealpathFunction · 0.70

Calls 2

_get_sepFunction · 0.85
startswithMethod · 0.80

Tested by

no test coverage detected