def project_info(result):
 project_path = str(result.project)
 project_slug = os.path.split(project_path)[(-1)]
 project_dir = os.path.join(project_path, project_slug)
 return (project_path, project_slug, project_dir)

def project_info ( result ) : project_path = str ( result . project ) project_slug = os . path . split ( project_path ) [ ( - 1 ) ] project_dir = os . path . join ( project_path , project_slug ) return ( project_path , project_slug , project_dir )
get toplevel dir .