On Sat, Feb 19, 2005 at 01:21:08AM -0800, John Gilmore wrote:
> > There's a second problem caused by 
> > 
> >   from gnuradio import usrp
> > 
> > in the python code.  This import probes the USB trying to figure out
> > what kind of a usrp is out there.  If there's no USRP it fails.
> > I should probably just back out the check for the old usrp0's.  The
> > 1's and 2's have the same high level interface.
> 
> In general I wonder -- is it the practice in Python to have "includes"
> run off and do things that could cause errors?  I'm used to more static
> languages where if you import a library, it just lays there until you call
> it.   :-)   That way, you can parse your arguments and produce your error
> messages, and maybe never even call that included package, depending on
> the options you were passed.

Agreed.  The imports shouldn't be causing problems.

Eric


_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to