2010/7/15 Chris Wolf <cw10...@gmail.com>: > > > 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.
Well, my initially thought is that libusb 0.1 will be a legacy library and OpenUSB will continue be developed and eventually become a "better" library, in long term. Because of that I put the search criteria in this order. And because for one reason or other, I give the user the chance to force use one backend or another. > > Would it not be better to change the search order to put OpenUSB at the end? > (for now) While OpenUSB backend isn't implemented, it may be a good idea cutting it off from backend list for next alpha release. > > 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 > -- Best Regards, Wander Lairson Costa ------------------------------------------------------------------------------ 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