Total python embedding in a c/c++ app

tALSit talsit at talsit.org
Sun Jul 7 01:34:56 EDT 2002


Hi, I'm trying to turn python into a full embedded scripting system for my
games engine, and I'm looking a different approaches to do it.

One such approach would be to expose the full c++ to python (well, the
important things), and have a class such as cMain which starts up
everything, and have a python script that generates calls that.

Another approach would be to startup the python system  with in my program
and have it call whatever scripts necesarry. I like this approach better,
but it requires the use of the functions PyRun_* which take a FILE* of the
console and I don't know how to obtain that. Any help on this would be
appreciated.

Damm... I'm just reading this email, and I realise that it makes very little
sense. Anyway, anyone that has totally embedded python into their system, I
would be extreemly gratefull to know how they went about doing it, thanks!





More information about the Python-list mailing list