mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
d3053b8a86
commit
fce4ab97b6
@ -56,6 +56,7 @@ def get_connected_device():
|
||||
return dev
|
||||
|
||||
def debug(ioreg_to_tmp=False, buf=None):
|
||||
import textwrap
|
||||
from calibre.customize.ui import device_plugins
|
||||
from calibre.devices.scanner import DeviceScanner, win_pnp_drives
|
||||
from calibre.constants import iswindows, isosx, __version__
|
||||
@ -97,8 +98,8 @@ def debug(ioreg_to_tmp=False, buf=None):
|
||||
connected_devices = []
|
||||
devplugins = list(sorted(device_plugins(), cmp=lambda
|
||||
x,y:cmp(x.__class__.__name__, y.__class__.__name__)))
|
||||
out('Available plugins:', ' '.join([x.__class__.__name__ for x in
|
||||
devplugins]))
|
||||
out('Available plugins:', textwrap.fill(' '.join([x.__class__.__name__ for x in
|
||||
devplugins])))
|
||||
out(' ')
|
||||
out('Looking for devices...')
|
||||
for dev in devplugins:
|
||||
|
Loading…
x
Reference in New Issue
Block a user