15 #ifndef BORNAGAIN_CORE_PYIO_PYEMBEDDEDUTILS_H
16 #define BORNAGAIN_CORE_PYIO_PYEMBEDDEDUTILS_H
18 #ifdef BORNAGAIN_PYTHON
PyObvject forward declaration.
Our sample model: a stack of layers one below the other.
std::string toString(PyObject *obj)
Converts PyObject into string, if possible, or throws exception.
std::vector< std::string > toVectorString(PyObject *obj)
Converts PyObject into vector of strings, if possible, or throws exception.
std::string pythonStackTrace()
Returns string representing python stack trace.
void import_bornagain(const std::string &path="")
Imports BornAgain from given location. If path is empty, tries to rely on PYTHONPATH.
std::string pythonRuntimeInfo()
Returns multi-line string representing PATH, PYTHONPATH, sys.path and other info.