#NEWLINE# def call( self ) : #NEWLINE# #INDENT# ' Look up all the arguments on PATH and print each (first) result ' #NEWLINE# if ( ( not len ( self . args ) ) or ( not ( 'PATH' in self . environ ) ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# for f in self . args : #NEWLINE# #INDENT# for path in self . environ [ 'PATH' ] . split ( ':' ) : #NEWLINE# #INDENT# resolved = self . fs . resolve_path ( f , path ) #NEWLINE# if self . fs . exists ( resolved ) : #NEWLINE# #INDENT# self . write ( ( '%s/%s\n' % ( path , f ) ) ) #NEWLINE# continue