On Thu, Mar 04, 2010 at 07:15:19AM -0800, Eric B. wrote:
instead of
from gnuradio import howto
Hi Eric and list,
while this makes some things easier, I’m wondering if it wouldn’t be
nice to keep the Python modules in some kind of GR-specific namespace.
Take the howto example: imagine a new user tries to install it just to
see
what happens. It’s not completely unreasonable that another piece of
software would have a Python module called ‘howto’, which might result
in collisions. The same goes for other modules (I’ve written one called
‘specest’, this could be anything related to spectral estimation, the
name doesn’t imply any GNU Radio).
If I use the howto example as a template for writing a new module (and I
assume most people do), do I need to make sure the name doesn’t clash
with any other Python module? Or do I give it a name like
‘gr-modulename’?
Frankly, I don’t really know that much about the whole auto-stuff
internals, and in my local configuration I’ve never had any conflicts,
either, so I shouldn’t be ranting about code changes. But it somehow
doesn’t seem right to install modules right into some system path.
The ‘old’ method also had the advantage that I couldn’t lose track of
my GR stuff, e.g. if I had to nuke my installation for some reason I’d
simply delete $PYTHONLIBS/gnuradio and if I had installed e.g. howto,
it would vanish as well.
Just my two Euro-cents…
Martin
–
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)
Dipl.-Ing. Martin B.
Research Associate
Kaiserstraße 12
Building 05.01
76131 Karlsruhe
Phone: +49 721 608-3790
Fax: +49 721 608-6071
www.cel.kit.edu
KIT – University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association