attempt to fix for py2.3

This commit is contained in:
Campbell Barton
2009-04-29 16:48:00 +00:00
parent 11ad5f8389
commit d6c525d624

View File

@@ -323,7 +323,7 @@ bool SCA_PythonController::Import()
return false;
}
PyObject *mod = PyImport_ImportModule(module_func[0]);
PyObject *mod = PyImport_ImportModule((char *)module_func[0].Ptr());
if(mod && m_debug) {
Py_DECREF(mod); /* getting a new one so dont hold a ref to the old one */
mod= PyImport_ReloadModule(mod);