Anyone know how to retrieve the unique serial number of a usb storage
device using python on OS X ??

Is there a way to do it using ioreg command ??
My python app currently parses ioreg output to discover VID/PID
combinations, so adding a bit of extra logic to get a usb unique serial
number should be quite easy.

Perhaps pyusb might be of use ??
I have steered away from pyusb in the past as I found it wasn't as
portable when creating app bundles.  i.e. found that compiled libraries
bundled in app would not work on a older version of OS X.  using ioreg
was more portable (for me at the time).

Thanks,
Brendan.

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to