gccxml path asked during C++/Python construction
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PTools |
New
|
Medium
|
Unassigned |
Bug Description
The interface construction crashes when the gccxml path is not defined in the file interface.py.
The error message is:
-------
poulain@cumin> python interface.py
Traceback (most recent call last):
File "interface.py", line 14, in <module>
, define_symbols=[] )
File "/home/
, indexing_
File "/home/
decls = reader.read_files( files, compilation_mode )
File "/home/
return self.__
File "/home/
, self.__decl_factory )
File "/home/
self.
File "/home/
raise RuntimeError( msg )
RuntimeError: gccxml_path(" ") should exists or to be a valid file name.
-------
OS: Fedora Core 10
boost 1.34, boost devel 1.34, python-devel 2.5.2, scons 1.0.0 all from official Fedora repositories
gccxml 0.9.0 compiled from svn repository (download and compiled 09/03/2010)
pygccxml and py++ 1.0.0 from original website
PATH contains gccxml path
PYTHONPATH contains py++ and pygccxml paths
-------
Defining gccxml path in the file interface.py (line 13) works:
, gccxml_
instead of
, gccxml_path=r""
-------
Question:
1/ how py++ and pygccxml were doing before to find gccxml path ?
2/ how to write gccxml path in interface.py in a dynamic/automatic way ?