(s)
return s != '' and s[:1] in '/\\'
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 s != '' and s[:1] in '/\\'
def isabs ( s ) : s = splitdrive ( s ) [ 1 ] return s != '' and s [ : 1 ] in '/\\'