18 #ifndef PYTHON_UTILS_HH_ 19 #define PYTHON_UTILS_HH_ 21 #include <boost/exception/info.hpp> 26 #ifdef FLOW123D_HAVE_PYTHON 59 PythonRunning(
const std::string &python_home);
85 <<
"Python Error: " << EI_PythonMessage::val <<
"\n");
99 static void initialize(
const std::string &python_home=
"");
105 static PyObject * load_module_from_file(
const std::string& fname);
110 static PyObject * load_module_from_string(
const std::string& module_name,
const std::string& source_string);
120 static PyObject * load_module_by_name(
const std::string& module_name);
124 static void check_error();
128 static PyObject * get_callable(PyObject *module,
const std::string &func_name);
134 static std::string sys_path;
139 #endif // FLOW123D_HAVE_PYTHON #define DECLARE_EXCEPTION(ExcName, Format)
Macro for simple definition of exceptions.
#define TYPEDEF_ERR_INFO(EI_Type, Type)
Macro to simplify declaration of error_info types.