def isabs(s):
 s = splitdrive(s)[1]
 return ((s != '') and (s[:1] in '/\\'))

def isabs ( s ) : s = splitdrive ( s ) [ 1 ] return ( ( s != '' ) and ( s [ : 1 ] in '/\\' ) )
return true if a path is absolute .