Test whether a path is absolute
(s, /)
| 60 | # Trivial in Posix, harder on the Mac or MS-DOS. |
| 61 | |
| 62 | def 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. |
nothing calls this directly
no test coverage detected
searching dependent graphs…