def full_path_split(path):
 (rest, tail) = os.path.split(path)
 if ((not rest) or (rest == os.path.sep)):
  return (tail,)
 return (full_path_split(rest) + (tail,))

def full_path_split ( path ) : ( rest , tail ) = os . path . split ( path ) if ( ( not rest ) or ( rest == os . path . sep ) ) : return ( tail , ) return ( full_path_split ( rest ) + ( tail , ) )
function to do a full split on a path .