def get_folder_and_search_path(path, sep):
 folder = (path[:(path.rfind(sep) + 1)] if (path != sep) else sep)
 search_path = path[(path.rfind(sep) + 1):]
 return (folder, search_path)

def get_folder_and_search_path ( path , sep ) : folder = ( path [ : ( path . rfind ( sep ) + 1 ) ] if ( path != sep ) else sep ) search_path = path [ ( path . rfind ( sep ) + 1 ) : ] return ( folder , search_path )
breakdown the search path .