tf2_py/src/tf2_py.cpp
inline PyObject * pythonImport(const std::string & name)
{
  PyObject * py_name = stringToPython(name);
  if (!py_name) {
    return nullptr;
  }
  PyObject * module = PyImport_Import(py_name);
  Py_XDECREF(py_name);
  return module;
}
/// \brief Imports a python module by name.
/// \note The caller is responsible for decref'ing the returned object.
/// \note If the return value is NULL then an exception is set.
/// \return a reference to the imported module.
\brief Imports a python module by name.
\note The caller is responsible for decref'ing the returned object.
\note If the return value is NULL then an exception is set.
\return a reference to the imported module.
\ brief Imports a python module by name . \ note The caller is responsible for decref ' ing the returned object . \ note If the return value is NULL then an exception is set . \ return a reference to the imported module .
inline PyObject * pythonImport(const std::string & name)
{
  PyObject * py_name = stringToPython(name);
  if (!py_name) {
    return nullptr;
  }
  PyObject * module = PyImport_Import(py_name);
  Py_XDECREF(py_name);
  return module;
}
inline PyObject * pythonImport ( const std :: string & name ) { PyObject * py_name = stringToPython ( name ) ; if ( ! py_name ) { return nullptr ; } PyObject * module = PyImport_Import ( py_name ) ; Py_XDECREF ( py_name ) ; return module ; }
\brief Imports a python module by name.
\ brief Imports a python module by name .