How to transmit arguments from c++ to python

Jody Winston josephwinston at mac.com
Tue Feb 15 01:04:12 EST 2000


"Bing Chen" <BC at prism.co.nz> writes:

> Hi, All
> Many thanks you guys tell me how to transmit arguments from my c++
> application to python program?
> Many thanks for anyone who know why the PyRun_File crash c++ application,
> but PyRun_String works very well.

Look at the method run_interpreter in Demo/pysrc/pysrc.c and in the
documentation on embedding an interpreter.

-- 
Jody Winston



More information about the Python-list mailing list