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