How Can I run some Python Scripts in VS C++?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Feb 20 18:28:02 CET 2009


En Fri, 20 Feb 2009 15:14:52 -0200, bing <bing.liu at gmail.com> escribió:

> Hi, I have some simple python scripts, anyone knows how to run the
> Python Scripts in C++?
> Any code example would be really helpful and appreciated.

Do you want to write a C++ application, and allow your users to write  
scripts in Python, possibly exposing some objects from you application?

Yes: read the "Extending and Embedding" document, specially the "Embedding  
part" (last)
<http://docs.python.org/extending/index.html>

No: please explain in more detail what you want to do.

-- 
Gabriel Genellina




More information about the Python-list mailing list