2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 17:52:17 +00:00

Fix boost::python::import.

[SVN r37123]
This commit is contained in:
Stefan Seefeld
2007-03-01 18:31:10 +00:00
parent 4fa07f2b3d
commit 47b4b4efbb
2 changed files with 2 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ object BOOST_PYTHON_DECL import(str name)
{
// should be 'char const *' but older python versions don't use 'const' yet.
char *n = python::extract<char *>(name);
python::handle<> module(python::borrowed(PyImport_AddModule(n)));
python::handle<> module(python::borrowed(PyImport_ImportModule(n)));
return python::object(module);
}

View File

@@ -150,6 +150,7 @@ bpl-test crossmod_opaque
/boost/python//boost_python ]
[ bpl-test
map_indexing_suite : map_indexing_suite.py map_indexing_suite_ext ]
[ py-run import_.cpp ]
# if $(TEST_BIENSTMAN_NON_BUGS)
# {