18 #ifndef PYTHON_UTILS_HH_ 19 #define PYTHON_UTILS_HH_ 23 #ifdef FLOW123D_HAVE_PYTHON 35 PythonRunning(
const std::string &python_home);
61 <<
"Python Error: " << EI_PythonMessage::val <<
"\n");
75 static void initialize(
const std::string &python_home=
"");
81 static PyObject * load_module_from_file(
const std::string& fname);
86 static PyObject * load_module_from_string(
const std::string& module_name,
const std::string& source_string);
96 static PyObject * load_module_by_name(
const std::string& module_name);
100 static void check_error();
104 static PyObject * get_callable(PyObject *module,
const std::string &func_name);
110 static std::string sys_path;
115 #endif // FLOW123D_HAVE_PYTHON #define DECLARE_EXCEPTION(ExcName, Format)
Macro for simple definition of exceptions.
Global macros to enhance readability and debugging, general constants.
#define TYPEDEF_ERR_INFO(EI_Type, Type)
Macro to simplify declaration of error_info types.