Running Python script from C++ code(.NET)

Gerard Flanagan grflanagan at yahoo.co.uk
Sat Sep 23 20:42:27 CEST 2006


volcano wrote:
> Gerard Flanagan wrote:
> > volcano wrote:
> > > Hello, folks!
> > > A trivial question - I have a working Python script that I have to
> > > invoke from C++ code. No fancy stuff - just run the whole script with
> > > its parameters. No callbacks, no signalling - nada, just
> > > stupid,primitive, straightforward call.
> > >
> > > And while there is a lot of help on embedding, I could not find out how
> > > to run script as a whole.SOS!!!!
> >
> > In C#:
> >
> > http://groups.google.com/group/comp.lang.python/browse_frm/thread/da2a675da29b0bd/197b6a89095ef930?lnk=st&q=&rnum=4#197b6a89095ef930
> >
> > hth
> >
> > Gerard
>
> Thanks for fast response, alas - it did not!
> My problem is - application in C++ used to use external application,
> which does not work well. So I sort of reproduced the functionality in
> Python script, but now I am stuck, unable to run it properly.

Maybe my understanding is wrong, but can't managed (.NET) C++ call into
any other managed assembly, in this case (I think) System.Diagnostics?

Gerard




More information about the Python-list mailing list