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
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
Hi Zubin,
Deployment OS is RedHat Linux.
Here is the python file : Hello.py
Def sayHello(name):
Print "Hello" + name
sayHello(arg)
and
In c++ file, I am catching all the lines from the python file in string buffer
and calling the PyRun_SimpleString(stringbuffer).
It is working fine
I have been trying to install spyder ide but of no avail.
Downloaded and installed spyder-1.03_py26.exe
I have downloaded pyqt4 for that purpose(Direct Installer)
pyqt-py2.6-gpl-4.7-1.exe
after installing the above softwares and then launching Spyder
it is showing initialising and gets disappears.
#!/usr/bin/python
# test.py
import sys
print sys.argv
$ python test.py myArgument
i hope this is what you required.
On 2/25/10, lakshmi.chow...@bt.com wrote:
> Hi Zubin,
>
> Deployment OS is RedHat Linux.
>
> Here is the python file : Hello.py
>
> Def sayHello(name):
> Print "Hello" +
Can you show me the stringbuffer what it contains?
On Thu, Feb 25, 2010 at 6:58 PM, Zubin Mithra wrote:
> #!/usr/bin/python
> # test.py
> import sys
> print sys.argv
>
>
> $ python test.py myArgument
>
> i hope this is what you required.
>
>
>
> On 2/25/10, lakshmi.chow...@bt.com wrote:
> > Hi Z
Hi Zubin,
Thanks a lot for the quick reply.
You are correct Zubin, we can execute python script individually as you
described.
But my requirement is that,
Basically I want to call the python script from c++ program.
In the c++ program, I am creating the multi threads and calling the
thread fu
Hi,
I sent some data from TCP client written in Python running in Windows OS
using pack() function to the TCP server written in C code running in
DEOS operating system. I want to unpack the function at TCP server. How
to do?
Thanks and Regards,
Girish P.G
__