embedded Python sample

Michael Chermside mcherm at destiny.com
Tue Sep 10 18:44:07 CEST 2002


bruno Monnet wrote:
> Hi,
> 
> I'm trying to call a python script from my c++ code. All I need is to
> invoke the script and check the return status.
> 
> does anyone has a simple example ? All I found until now is very
> complex and ugly code :-((
> 
> Regards,
> Bruno

Why not just execute as a sub-process... invoke it as a shell command 
just as you'd do with "ls".

-- Michael Chermside








More information about the Python-list mailing list