Python as an extension language

Torsten Bronger bronger at physik.rwth-aachen.de
Mon Mar 6 03:48:38 EST 2006


Hallöchen!

I'd like to use Python as an extension language for a C++ program.
I.e., the user starts my program and gives a python script, either
by file name or via stdin.  The python script triggers a couple of
function calls within the C++ program, and afterwards my program
exits.

I already know how to do that in principle.  My only concern is
distributing the thing, especially for the Windows platform.  Is it
possible to create a bundle of my program and a light-weight Python
interpreter, so that installation is easy and disk usage relatively
small?  The Python scripts are not supposed to import modules after
all, at least not explicitly.

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus            ICQ 264-296-646



More information about the Python-list mailing list