2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 01:32:12 +00:00

Reflect the results of calling bjam from Python. (fixes #2112)

[SVN r49907]
This commit is contained in:
Rene Rivera
2008-11-24 03:14:55 +00:00
parent bc55e22825
commit 2a47ed96d2

View File

@@ -1665,8 +1665,19 @@ PyObject* bjam_call( PyObject * self, PyObject * args )
frame_free( inner );
Py_INCREF( Py_None );
return Py_None;
/* Convert the bjam list into a Python list result. */
{
PyObject * pyResult = PyList_New( list_length( result ) );
int i = 0;
while ( result )
{
PyList_SetItem( pyResult, i, PyString_FromString( result->string ) );
result = list_next( result );
i += 1;
}
list_free( result );
return pyResult;
}
}