
9 Feb
2008
9 Feb
'08
9:48 p.m.
Robert Dailey wrote:
I don't want to use a DLL, as I already mentioned. I want there to be my python scripts and my game executable, that's it. I don't want a DLL and a game executable. I want this to remain simple. As I originally asked, is there a way to do this? Do I load my exe as a pyd module or what?
I recommend you look at py2exe: http://www.py2exe.org/ We built one product with Python scripts at the top level. All our custom C++ logic (notably the main loop) is in a set of .pyd Python extensions called by those scripts. But all, including the Python interpreter, is very neatly packaged by py2exe so that none of those details are visible to the user: the install footprint is just a big .exe and our data files.