From 763fc88171433edbaabbe851a211eeb4edb6db9e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 18 Dec 2020 21:07:42 +0530 Subject: [PATCH] docs for load_module() --- src/calibre/live.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/calibre/live.py b/src/calibre/live.py index 090d3432ae..d880f807a1 100644 --- a/src/calibre/live.py +++ b/src/calibre/live.py @@ -223,6 +223,13 @@ def cached_is_suitable(cached, installed): def load_module(full_name, strategy=Strategy.download_now, timeout=default_timeout): + ''' + Load the specified module from the calibre servers. strategy controls + whether to check for the latest version immediately or eventually + (strategies other that download_now). Note that you must call + start_worker() for eventual checking to work. Remember to call + stop_worker() at exit as well. + ''' installed = import_module(full_name) try: if strategy is Strategy.fast: