It's OK, I figure it out. all I need to cast results from code.find() as list
devs = list(usb.core.find(find_all=True,idVendor=VID, idProduct=PID))
and then I can iterate over device list and remove host from list.
From: igor...@hotmail.com
To: pyusb-users@lists.sourceforge.net
Date: Sun, 5 Jun 2016 16:44:33 +0300
Subject: [pyusb-users] Exclude USB Host from Devices List
Hi All,When I try to search for devices under specific host, I always get a
list of device that include the host and it's root hub. is there a way to
exclude both them, so I get only devices list under a specific Host?
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users