pvpythonmodules.h
Go to the documentation of this file.
1 #ifndef pvpythonmodules_h
2 #define pvpythonmodules_h
3 
4 // Dependent bundles of Python modules.
5 #include "vtkpythonmodules.h"
6 
7 #define PY_APPEND_INIT(module) PyImport_AppendInittab("." #module, PyInit_ ## module)
8 #define PY_IMPORT(module) { \
9  PyObject* var_ ## module = PyInit_ ## module(); \
10  PyDict_SetItemString(PyImport_GetModuleDict(), "." #module,var_ ## module); \
11  Py_DECREF(var_ ## module); }
12 
13 #define PY_APPEND_INIT_OR_IMPORT(module, do_import) \
14  if (do_import) { PY_IMPORT(module); } else { PY_APPEND_INIT(module); }
15 
16 static void pvpythonmodules_load() {
18 }
19 #undef PY_APPEND_INIT
20 #undef PY_IMPORT
21 #undef PY_APPEND_INIT_OR_IMPORT
22 #endif
static void pvpythonmodules_load()
static void vtkpythonmodules_load()