annotate python/lsusb.py @ 112:056face59ee7

Added lsusb script
author Windel Bouwman
date Fri, 04 Jan 2013 18:40:05 +0100
parents
children 654093a9a1e3
rev   line source
112
056face59ee7 Added lsusb script
Windel Bouwman
parents:
diff changeset
1 #!/usr/bin/python
056face59ee7 Added lsusb script
Windel Bouwman
parents:
diff changeset
2
056face59ee7 Added lsusb script
Windel Bouwman
parents:
diff changeset
3 from usb import UsbContext
056face59ee7 Added lsusb script
Windel Bouwman
parents:
diff changeset
4
056face59ee7 Added lsusb script
Windel Bouwman
parents:
diff changeset
5 context = UsbContext()
056face59ee7 Added lsusb script
Windel Bouwman
parents:
diff changeset
6 for d in context.DeviceList:
056face59ee7 Added lsusb script
Windel Bouwman
parents:
diff changeset
7 print(d)
056face59ee7 Added lsusb script
Windel Bouwman
parents:
diff changeset
8