Re: Embedded Boost.Python Enum

2007-10-18 Thread Cory
Ok, I finally got it figured out. The secret which no one told me what that if you're doing embedding, you have to initialize your modules! BOOST_PYTHON_MODULE(Enums){ ... } defines the function initEnums() which must be called before you can import the module. Finally figured it out by looking he

Re: Embedded Boost.Python Enum

2007-10-18 Thread Roman Yakovenko
On 10/18/07, Cory <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a hopefully quick question about how to use Boost.Python to > export an Enum. > I am embedding python in C++ and am currently exporting my classes in > the following way: > > nameSpace["OBJECT"] = class_("OBJECT") > .def("getTy