Lines 280-286
Link Here
|
280 |
// Return the named attribute object from the named module. |
280 |
// Return the named attribute object from the named module. |
281 |
PyObject *PyCustomWidgets::getModuleAttr(const char *module, const char *attr) |
281 |
PyObject *PyCustomWidgets::getModuleAttr(const char *module, const char *attr) |
282 |
{ |
282 |
{ |
283 |
#if PY_VERSION_HEX >= 0x020500 |
283 |
#if PY_VERSION_HEX >= 0x02050000 |
284 |
PyObject *mod = PyImport_ImportModule(module); |
284 |
PyObject *mod = PyImport_ImportModule(module); |
285 |
#else |
285 |
#else |
286 |
PyObject *mod = PyImport_ImportModule(const_cast<char *>(module)); |
286 |
PyObject *mod = PyImport_ImportModule(const_cast<char *>(module)); |