support building with python3.2

This commit is contained in:
2011-01-18 21:39:50 +00:00
parent 7d675b15fb
commit 3b0c2accc6
8 changed files with 20 additions and 14 deletions

View File

@@ -408,7 +408,13 @@ void SCA_PythonController::Trigger(SCA_LogicManager* logicmgr)
*/
excdict= PyDict_Copy(m_pythondictionary);
resultobj = PyEval_EvalCode((PyCodeObject*)m_bytecode, excdict, excdict);
#if PY_VERSION_HEX >= 0x03020000
resultobj = PyEval_EvalCode((PyObject *)m_bytecode, excdict, excdict);
#else
resultobj = PyEval_EvalCode((PyCodeObject *)m_bytecode, excdict, excdict);
#endif
/* PyRun_SimpleString(m_scriptText.Ptr()); */
break;
}