On 7/15/10 6:13 AM, Wander Lairson wrote: > 2010/7/15 Chris Wolf <cw10...@gmail.com>: >> >> >> On 7/12/10 9:49 AM, Wander Lairson wrote: >>> Yes, I haven't started OpenUSB, I just "typed" the code but never >>> tested it. I will apply your fix so at least we can enumerate devices >>> using OpenUSB. Thanks a lot. >>> >> >> Sure, thank *you*. So shall I assume that the libusb10 backend is the best >> supported backend for now? > > Either libusb10 or libusb01 backends are in the same maturity level at > this moment.
Ok, but in core.py, the search order seems to put OpenUSB ahead of libusb01, such that if a particular machine has all three libraries, it will go to openusb, which you say, whose backend wrapper is not quite ready yet. Would it not be better to change the search order to put OpenUSB at the end? (for now) if backend is None: import usb.backend.libusb10 as libusb10 import usb.backend.libusb01 as libusb01 import usb.backend.openusb as openusb for m in (libusb10, openusb, libusb01): backend = m.get_backend() if backend is not None: _logger.info('find(): using backend "%s"', m.__name__) break Regards, Chris Wolf ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users