Short of modifying the distribution, I don't see any way within Py++ to change the type of reader. It seems to be hardcoded to project_reader_t:
def __parse_declarations( self, files, gccxml_config, compilation_mode, cache, indexing_suite_version ): if None is gccxml_config: gccxml_config = parser.config_t() if None is compilation_mode: compilation_mode = parser.COMPILATION_MODE.FILE_BY_FILE start_time = time.clock() self.logger.debug( 'parsing files - started' ) reader = parser.project_reader_t( gccxml_config, cache, decl_wrappers.dwfactory_t() ) -----Original Message----- From: cplusplus-sig-bounces+josh.davidson=lmco....@python.org [mailto:cplusplus-sig-bounces+josh.davidson=lmco....@python.org] On Behalf Of Roman Yakovenko Sent: Monday, December 19, 2011 12:37 PM To: Development of Python/C++ integration Subject: EXTERNAL: Re: [C++-sig] pygccxml KeyError On Sat, Dec 17, 2011 at 2:23 AM, Davidson, Josh <josh.david...@lmco.com> wrote: > Hopefully, there's enough information in the traceback, but if not I > can try to sanitize an example. I'm on rev 1856. More or less. Sorry for late response, I was pretty busy. > File > "c:\Python26\lib\site-packages\pygccxml\parser\project_reader.py", > line 445, in _join_class_hierarchy You are using project_reader_t class to parse a set of C++ files. This method is not reliable and pretty slow. I suggest you to use "source_reader_t" class. Please read the project documentation, it explains how to start using it. Regards, Roman _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig