Embedding Python in C++
Rick L. Ratzel
rick.ratzel at magma-da.com
Tue Apr 27 00:41:27 EDT 2004
Ciao,
I have some examples from my PyCon presentation here:
http://elmer.sourceforge.net/PyCon04/elmer_pycon04.html
...and here is the complete example code:
http://elmer.sourceforge.net/PyCon04/Elmer_PyCon04.tgz
I think the example code from example 1 may be most relevant. You
can also use Elmer (http://elmer.sourceforge.net) to generate a C
interface to your Python code (as shown in examples 2 & 3).
Buona fortuna!
Rick.
Tonio wrote:
> Hi
> i'm a italian student.
> I must create a virtual machine which call python script from Visual C++
> program.
> My teacher tell me use swig fror make this work.
> I use Swig for import in Python class, object, variables of C++, but my
> problem are when in C++ i must call script Python.
> I find many article, but i don't find a working example.
> Can you advise me how i call python script from C++?
> Have you example which can you send me (in my email)?
> (my script use only int, float, string and object, class).
> Thanks.
>
>
More information about the Python-list
mailing list