BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Defines PyEmbeddedUtils namespace. More...
Go to the source code of this file.
Functions | |
std::string | PyEmbeddedUtils::toString (PyObject *obj) |
Converts PyObject into string, if possible, or throws exception. | |
std::vector< std::string > | PyEmbeddedUtils::toVectorString (PyObject *obj) |
Converts PyObject into vector of strings, if possible, or throws exception. | |
std::string | PyEmbeddedUtils::toString (char *c) |
Converts char to string. In the case of nullptr will return an empty string. | |
std::string | PyEmbeddedUtils::toString (wchar_t *c) |
void | PyEmbeddedUtils::import_bornagain (const std::string &path="") |
Imports BornAgain from given location. If path is empty, tries to rely on PYTHONPATH. | |
std::string | PyEmbeddedUtils::pythonRuntimeInfo () |
Returns multi-line string representing PATH, PYTHONPATH, sys.path and other info. | |
std::string | PyEmbeddedUtils::pythonStackTrace () |
Returns string representing python stack trace. | |
Defines PyEmbeddedUtils namespace.
Definition in file PyEmbeddedUtils.h.