int main(int argc, char *argv[])
{
PythonLib* lib = new PythonLib(); //exposed library to python
lib->m_test = 49;
Py_Initialize();
PyRun_InteractiveLoop(stdin, "<stdin>");
Py_Finalize();
return 0;
}
Python Embedding Multithreaded App
OK,
I want a command window to type and edit things in my game. I can not for the life of me find any documentation on this. Anywhay, I have an app that looks like this:
When I run PyRun_InteractiveLoop this gives me the command line I was wanting, but I can't import my library, I can't edit m_test, the value is 49, I want to change that in the python intrepreter. Any clues why I can't???
Thanks
Jeff
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement