#NEWLINE# def find_matching_entrypoint( path , entrypoint ) : #NEWLINE# #INDENT# trace ( 'looking for ep' , entrypoint , path ) #NEWLINE# for ep in iter_entry_points ( ep ) : #NEWLINE# #INDENT# if os . path . exists ( os . path . join ( path , ep . name ) ) : #NEWLINE# #INDENT# if os . path . isabs ( ep . name ) : #NEWLINE# #INDENT# trace ( 'ignoring bad ep' , ep ) #NEWLINE# #UNINDENT# trace ( 'found ep' , ep ) #NEWLINE# return ep