Python usb detection
First sorry for my english ! my environement : python : 2.7.3 wxwidgets : 2.9.4-1 wxpython : 2.9.4-1 ubuntu : 12.04 context : I have to detect when an usb hard-drive is plugged or unplugged and do some action on it. For example when a disk is plugged i wan to get the mount point (ex:/media/usb0) and the system point (ex:/dev/sdb1). I need both two path and i do not want made a system call like (subprocess : mount -l). I have tried several ways : - pyudev : only get the system path on EVT_DEVICE_ADDED (like /dev/sdb1) - Gio (gi.repository) : get the mount point with 'mount-added' (like /media