#NEWLINE# @ staticmethod #NEWLINE# def find_feature( space , path ) : #NEWLINE# #INDENT# assert ( path is not None ) #NEWLINE# if os . path . isfile ( path ) : #NEWLINE# #INDENT# return path #NEWLINE# #UNINDENT# if ( not path . endswith ( '.rb' ) ) : #NEWLINE# #INDENT# path += '.rb' #NEWLINE# #UNINDENT# if ( not ( path . startswith ( '/' ) or path . startswith ( './' ) or path . startswith ( '../' ) ) ) : #NEWLINE# #INDENT# w_load_path = space . globals . get ( space , '$LOAD_PATH' ) #NEWLINE# for w_base in space . listview ( w_load_path ) : #NEWLINE# #INDENT# base = Coerce . path ( space , w_base ) #NEWLINE# full = os . path . join ( base , path ) #NEWLINE# if os . path . isfile ( full ) : #NEWLINE# #INDENT# path = os . path . join ( base , path ) #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return path