I need to on/off several usb devices on my python script. Can i bind and unbind usb devices with PyUsb?
I can do it with shell commands:
Power off:
echo "device_nuber" > /sys/bus/usb/drivers/usb/unbind
Power on:
echo "device_nuber" > /sys/bus/usb/drivers/usb/bind
How execute the same in python script?