From 429096bb54375ae295238b33afa385e63b408032 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 9 Aug 2012 11:48:18 +0530 Subject: [PATCH] ... --- src/calibre/devices/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/calibre/devices/__init__.py b/src/calibre/devices/__init__.py index 5c7da00861..37ec55c149 100644 --- a/src/calibre/devices/__init__.py +++ b/src/calibre/devices/__init__.py @@ -56,6 +56,12 @@ def get_connected_device(): return dev 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 from calibre.customize.ui import device_plugins from calibre.devices.scanner import DeviceScanner, win_pnp_drives