(s)
return len(s) > 0 and s[:1] in _get_bothseps(s)
Test whether a path is absolute
Test whether a path is absolute
Test whether a path is absolute
def isabs(s):
    """Test whether a path is absolute"""
    s = splitdrive(s)[1]
    return len(s) > 0 and s[:1] in _get_bothseps(s)
def isabs ( s ) : s = splitdrive ( s ) [ 1 ] return len ( s ) > 0 and s [ : 1 ] in _get_bothseps ( s )