#NEWLINE# def get_script_from_egg( name , dist ) : #NEWLINE# #INDENT# 'Returns location, content of script in distribution or (None, None) if not there.' #NEWLINE# if ( name in dist . metadata_listdir ( 'scripts' ) ) : #NEWLINE# #INDENT# return ( os . path . join ( dist . egg_info , 'scripts' , name ) , dist . get_metadata ( ( 'scripts/%s' % name ) ) . replace ( '\r\n' , '\n' ) . replace ( '\r' , '\n' ) ) #NEWLINE# #UNINDENT# return ( None , None )