[chirp_devel] [PATCH] [RFC] Dynamic driver registration
IZ3GME Marco
Fri Feb 17 01:52:27 PST 2012
Hi Dan
> Thoughts? Comments?
>
I like it.
I think we must comment the magic of this decoration so people in future
have a trace of the effect of "@directory.register" in chirp.
Eg.
we can add in front of the register definition
# Any driver claiming to implement a radio driver can decorate that
# class with @directory.register and have it automatically included in
# the directory.
# Thus, simply placing mydriver.py in the chirp module folder will
# cause it to be included.
and near the @directory.register in each driver
# this will automatically include our driver in the directory
# see register definition in directory.py
73 de IZ3GME Marco
More information about the chirp_devel
mailing list