mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
50586aa515
commit
37ee3db0c2
@ -626,6 +626,8 @@ if __name__ == '__main__':
|
|||||||
pprint(get_usb_devices())
|
pprint(get_usb_devices())
|
||||||
print('Is connected:', is_usb_device_connected(0x1949, 0x4))
|
print('Is connected:', is_usb_device_connected(0x1949, 0x4))
|
||||||
pprint(get_all_removable_drives())
|
pprint(get_all_removable_drives())
|
||||||
|
rd = get_removable_drives()
|
||||||
pprint(get_removable_drives())
|
pprint(get_removable_drives())
|
||||||
pprint(get_drive_letters_for_device(0x1949, 0x4))
|
pprint(get_drive_letters_for_device(0x1949, 0x4))
|
||||||
eject_drive('E')
|
for drive in rd:
|
||||||
|
eject_drive(drive)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user