support building with python3.2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user