This commit is contained in:
Kovid Goyal 2012-08-09 11:48:18 +05:30
parent 64a2cbc4e0
commit 429096bb54

View File

@ -56,6 +56,12 @@ def get_connected_device():
return dev return dev
def debug(ioreg_to_tmp=False, buf=None, plugins=None): def debug(ioreg_to_tmp=False, buf=None, plugins=None):
'''
If plugins is None, then this method calls startup and shutdown on the
device plugins. So if you are using it in a context where startup could
already have been called (for example in the main GUI), pass in the list of
device plugins as the plugins parameter.
'''
import textwrap import textwrap
from calibre.customize.ui import device_plugins from calibre.customize.ui import device_plugins
from calibre.devices.scanner import DeviceScanner, win_pnp_drives from calibre.devices.scanner import DeviceScanner, win_pnp_drives