Testlink calling Python

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
Annie
TestLink user
Posts: 6
Joined: Mon Jul 18, 2011 9:03 am

Testlink calling Python

Post by Annie »

Hi,

I want to ask, testlink can call python ?

How to to ?

Thanks!
TurboPT
Member of TestLink Community
Posts: 343
Joined: Sun Dec 10, 2006 4:51 am

Re: Testlink calling Python

Post by TurboPT »

Annie wrote:Hi,

I want to ask, testlink can call python ?
As long as the phone# is correct! :D :lol:

Just kidding! What are you trying to achive, or do?
There is NOT enough detail in your question.

On the surface, I would say no, as PHP and Python have two different interpreters. But again, we would need more details about the desired goal.
Annie
TestLink user
Posts: 6
Joined: Mon Jul 18, 2011 9:03 am

Re: Testlink calling Python

Post by Annie »

Hi ,
Thanks, TurboPT .
I made a mistake, and should be PHP call python.

I already know how to do it, this:

exec("python getbugcount.py ");//shell_exec OR passthru

It working.
TurboPT
Member of TestLink Community
Posts: 343
Joined: Sun Dec 10, 2006 4:51 am

Re: Testlink calling Python

Post by TurboPT »

Annie wrote: .. should be PHP call python.

I already know how to do it, this:

exec("python getbugcount.py ");//shell_exec OR passthru

It working.
Yes, it could definitely work that way. Thank you for replying with the discovery.
Post Reply