Expose root object as Python class.

To make it possible to always call get_name on a sub operation.
This commit is contained in:
Erik Ogenvik 2018-12-16 22:08:51 +01:00
parent 2eeab96efa
commit a10de0db7d
6 changed files with 159 additions and 3 deletions

View file

@ -90,7 +90,7 @@ std::vector<double> CyPy_RootEntity::sequence_asVector(const Py::Object& o)
Py::Object CyPy_RootEntity::get_name()
{
return Py::String("obj");
return Py::String(m_value->getName());
}