#NEWLINE# def get_script_from_whl( name , dist ) : #NEWLINE# #INDENT# wheel_scripts_dir = ( '%s-%s.data/scripts' % ( safer_name ( dist . key ) , dist . version ) ) #NEWLINE# if ( dist . resource_isdir ( wheel_scripts_dir ) and ( name in dist . resource_listdir ( wheel_scripts_dir ) ) ) : #NEWLINE# #INDENT# script_path = os . path . join ( wheel_scripts_dir , name ) #NEWLINE# return ( os . path . join ( dist . egg_info , script_path ) , dist . get_resource_string ( '' , script_path ) . replace ( b'\r\n' , b'\n' ) . replace ( b'\r' , b'\n' ) ) #NEWLINE# #UNINDENT# return ( None , None )