
11 Feb
2008
11 Feb
'08
6:54 p.m.
Wouldn't this work instead of calling PyImport_AppendInittab(): static void DoFoo() { } using namespace boost::python; BOOST_PYTHON_MODULE(pythontest) { 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. Thanks.