Best way to go about embedding python

kfjwheeler at gmail.com kfjwheeler at gmail.com
Sun Nov 13 02:10:50 EST 2016


(Sorry about the last post, my finger slipped before I was finished, and I can't delete it for some reason.)

A friend of mine is developing a game engine, and I would like to extend the engine by adding some scripting functionality.  However, there's a lot of information out there, and I have a lot of questions before I get started.

1.  What's the best implementation to use?
        - The engine itself is written in pure C, and the compiler being used is clang.  Eventually, we'd like it to target multiple platforms.

2.  How would I go about including python scripts to run with the engine.  Would the .py files from the standard libraries be necessary, or is anything built in?

3.  How could I go about adding a repl to the engine application?  Preferably, I'd be able to connect to it with sublimerepl.

4.  Would it be possible to attach any python debuggers to the application and step through python code?


I realize that, in some cases, I may not even be asking the right questions, but any information that could point me in the right direction would be greatly appreciated.

Thanks



More information about the Python-list mailing list