Re: [Discuss-gnuradio] How to call .py file into another .py file

2010-01-27 Thread Michael Berman
Yes, there is. Try the "subprocess.Popen" command in python ( http://docs.python.org/library/subprocess.html). The one thing in this code that you will need to modify slightly is in the calls to set up the pipes, you need to to use "subprocess.PIPE" instead of simply "PIPE". At this point, you c

Re: [Discuss-gnuradio] How to call .py file into another .py file

2010-01-26 Thread Muhammad Ali Khan
Thanks for your suggestions guys. But i think i didn't convey myself properly. Right now i want to fetch out the gain at some frequency using (usrp_wfm_rcv.py) in a loop in which i can change my frequency in every iteration. is there any way i can get it. Thanks Ali On Tue, Jan 26, 2010 at 3:23

Re: [Discuss-gnuradio] How to call .py file into another .py file

2010-01-26 Thread Josef Vukovic
Hello, That's not a good python textbook, it is more like a quick start guide. I would suggest him "Learning python 4th edition" from Mark Lutz. http://oreilly.com/catalog/9780596158071 yours faithful Josef Vukovic > 2010/1/26 Eric Blossom > > On Tue, Jan 26, 2010 at 02:51:36PM -0500, Muhamm

Re: [Discuss-gnuradio] How to call .py file into another .py file

2010-01-26 Thread Josef Vukovic
Hello, That's not a good python textbook, it is more like a quick start guide. I would suggest him "Learning python 4th edition" from Mark Lutz. http://oreilly.com/catalog/9780596158071 yours faithfull Josef Vukovic 2010/1/26 Eric Blossom > On Tue, Jan 26, 2010 at 02:51:36PM -0500, Muhammad A

Re: [Discuss-gnuradio] How to call .py file into another .py file

2010-01-26 Thread Eric Blossom
On Tue, Jan 26, 2010 at 02:51:36PM -0500, Muhammad Ali Khan wrote: > hi guy, > > I am facing some problem. I want to execute a (.py) extension file into > another (.py) extension file. i am tired of searching on websites but didn't > get any satisfactory results. Is it possible or is there any oth

[Discuss-gnuradio] How to call .py file into another .py file

2010-01-26 Thread Muhammad Ali Khan
hi guy, I am facing some problem. I want to execute a (.py) extension file into another (.py) extension file. i am tired of searching on websites but didn't get any satisfactory results. Is it possible or is there any other way of doing this. can anyone help please. Ali __