- Joined
- Feb 25, 2010
- Messages
- 2
- Reaction score
- 0
Hi,
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,
Lakshmi Narasaiah
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,
Lakshmi Narasaiah