Test whether a path is absolute
(s)
| 58 | # Trivial in Posix, harder on the Mac or MS-DOS. |
| 59 | |
| 60 | def 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. |
no test coverage detected