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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
# {
|
||||
|
||||
Reference in New Issue
Block a user