October 3rd, 2004, 06:21 PM
python interpreter as dll
I was wondering if there was a way to compile the python interpreter as a dll. What i'm thinking about is that I really want to use python in my C++ apps for handling all sorts of minor task in them such as macros, game logic etc, but I don't want to have a "You must download the python interpreter to use this app" dependencie. I just want to have the python interpreter as a dll in my apps' dir. Can this be done? If so, how?
Andri Mar Jónsson
October 3rd, 2004, 11:52 PM
October 4th, 2004, 02:48 AM
The python interpreter is already in a dll - search for python23.dll in your Windows/system32 directory. (Assuming you have Python 2.3 installed).
The python.exe program is a thin wrapper round the dll to make it executable. The link that Strike posted will show you how to embed python in other programs.
Dave - The Developers' Coach.