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

2010-03-03 Thread Shivaraj M S
if this thread is still active - instead of passing the argument , probably the argument can be extracted from a temporary file/buffer. a small code can be inserted to the python code sent as argument to PyRun_SimpleString() to read it. steve-391 wrote: > > Hi, > > On 02/25/2010 07:32 PM, lak

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

2010-02-26 Thread steve
Hi, On 02/25/2010 07:32 PM, lakshmi.chow...@bt.com wrote: Hi Zubin, [...snip...] In the function definition, I am taking 1 hard coded variable and needs to pass this variable along with the string(python code) to PyRun_SimpleString() and execute it. Could you tell me the solution how to map th

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

2010-02-25 Thread lakshmi.chowdam
org [mailto:bangpypers-bounces+lakshmi.chowdam=bt@python.org] On Behalf Of Zubin Mithra Sent: Thursday, February 25, 2010 6:59 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Calling Python script from C++. #!/usr/bin/python # test.py import sys print sys.argv $ python test

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

2010-02-25 Thread Praveen Kumar
+ 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:bangpypers-bounces+lakshm

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

2010-02-25 Thread Zubin Mithra
dam=bt@python.org] On Behalf Of > Zubin Mithra > Sent: Thursday, February 25, 2010 5:11 PM > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Calling Python script from C++. > > could you give us a few more details? the deployment OS? > > > cheers!!!

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

2010-02-25 Thread lakshmi.chowdam
rs-bounces+lakshmi.chowdam=bt@python.org] On Behalf Of Zubin Mithra Sent: Thursday, February 25, 2010 5:11 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Calling Python script from C++. could you give us a few more details? the deployment OS? cheers!!! Zubin On Thu, Fe

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

2010-02-25 Thread Zubin Mithra
could you give us a few more details? the deployment OS? cheers!!! Zubin On Thu, Feb 25, 2010 at 12:51 PM, wrote: > 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 an

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

2010-02-25 Thread Gora Mohanty
On Thu, 25 Feb 2010 07:21:15 - wrote: [...] > 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_Sim

[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