[BangPypers] Calling Python script from C++.

2010-02-24 Thread lakshmi.chowdam
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

Re: [BangPypers] Calling Python script from C++.

2010-02-25 Thread lakshmi.chowdam
is working fine without passing any argument. But I want to send the argument to this python file from c++ file. Could you tell me how can I pass arguments to python file? Thanks, Lakshmi. -Original Message- From: bangpypers-bounces+lakshmi.chowdam=bt@python.org [mailto:bangpype

Re: [BangPypers] Calling Python script from C++.

2010-02-25 Thread lakshmi.chowdam
string(python code) to PyRun_SimpleString() and execute it. Could you tell me the solution how to map the argument to the string(python code) and pass to PyRun_SimpleString() and execute successfully? Thanks, Lakshmi. -Original Message- From: bangpypers-bounces+lakshmi.chowdam=bt@python.