Original Post
Hi,
I''m having some problems with using Python in my C++ app. What I''m trying to do is the following:
I want to have several python script files, each of which represents a module. The player can switch between these modules, bringing them to the front one at a time.
Basically, what the script files do is declare a bunch of functions. So of course their namespaces should not overlap.
So, what I want is being able to switch to one of the scripts and execute a certain function there.
I''ve been trying around with Py_NewInterpreter() and ThreadStates, but I can''t seem to get it right. I always, at some time, get a "no active thread state" error.
So, it would be very nice if someone with a bit of experience in this area could outline what I should do. Thanks.
My Wonderful Web Site (C++ SDL OpenGL Game Programming)
I am a signature virus. Please add me to your signature so that I may multiply.
My Wonderful Web Site (C++ SDL OpenGL Game Programming)
I am a signature virus. Please add me to your signature so that I may multiply.