Boost logo

Boost Users :

From: Robert Dailey (rcdailey_at_[hidden])
Date: 2008-02-11 13:54:45

Wouldn't this work instead of calling PyImport_AppendInittab():

static void DoFoo()

using namespace boost::python;

    def( "DoFoo", DoFoo );

void SetupPython()
    object import( "pythontest" );

Notice how I'm importing the "pythontest" module. I want to use
Boost.Pythonwhere ever I can, and in the
embedding.cpp example they use the Python API directly to import the
embedded module.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at