Files
chrome-extensions-samples/apps/samples/usb-label-printer/dettach_kernel_driver.py
Sam Thorogood 8af19b8ca9 move
2020-12-04 09:18:01 +11:00

8 lines
191 B
Python

# not required for ChromeOS. May be required for other operational systems, like Linux or Mac
import usb
dev = usb.core.find(idVendor=0x0922, idProduct=0x0020)
dev.detach_kernel_driver(0)