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
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
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
+ 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
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!!!
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
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
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
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