#NEWLINE# def find_from_package( pkgname , modname ) : #NEWLINE# #INDENT# pkg = find_package ( pkgname ) #NEWLINE# try : #NEWLINE# #INDENT# ( fo , fpath , ( suffix , mode , mtype ) ) = imp . find_module ( modname , pkg . __path__ ) #NEWLINE# #UNINDENT# except ImportError : #NEWLINE# #INDENT# ( ex , val , tb ) = sys . exc_info ( ) #NEWLINE# print ( '{} => {}: {}!' . format ( modname , mode . __name__ , val ) , file = sys . stderr ) #NEWLINE# return None #NEWLINE# #UNINDENT# fo . close ( ) #NEWLINE# if ( mtype == imp . PY_SOURCE ) : #NEWLINE# #INDENT# return fpath #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None