[BangPypers] Calling Python script from C++.

lakshmi.chowdam at bt.com lakshmi.chowdam at bt.com
Thu Feb 25 08:21:15 CET 2010



We have a requirement of Calling Python script from C++.


So, For this we are trying to pass entire python script(Script has  both
method implementation and method calls are exist) as a string and
executing this string by using PyRun_SimpleString().


Our concern is that if python has a method with no arguments we are able
to execute it successfully


But If Method takes parameters or arguments ,then how do we can pass
values to that method and how can we execute it?


Could you please provide the solution.


Thanks and Regards,

Lakshmi Narasaiah C,


More information about the BangPypers mailing list