mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
docs for load_module()
This commit is contained in:
parent
139595437f
commit
763fc88171
@ -223,6 +223,13 @@ def cached_is_suitable(cached, installed):
|
|||||||
|
|
||||||
|
|
||||||
def load_module(full_name, strategy=Strategy.download_now, timeout=default_timeout):
|
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)
|
installed = import_module(full_name)
|
||||||
try:
|
try:
|
||||||
if strategy is Strategy.fast:
|
if strategy is Strategy.fast:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user