18 #ifndef PYTHON_UTILS_HH_ 19 #define PYTHON_UTILS_HH_ 23 #ifdef FLOW123D_HAVE_PYTHON 57 PythonRunning(
const std::string &python_home);
83 <<
"Python Error: " << EI_PythonMessage::val <<
"\n");
97 static void initialize(
const std::string &python_home=
"");
103 static PyObject * load_module_from_file(
const std::string& fname);
108 static PyObject * load_module_from_string(
const std::string& module_name,
const std::string& source_string);
118 static PyObject * load_module_by_name(
const std::string& module_name);
122 static void check_error();
126 static PyObject * get_callable(PyObject *module,
const std::string &func_name);
132 static std::string sys_path;
137 #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.