def arbitrary_n(module_name, func_name, args, kwargs={}, notification=(lambda x, y: y)):
 if module_name.startswith('calibre_plugins'):
  from calibre.customize.ui import find_plugin
  find_plugin
 module = importlib.import_module(module_name)
 func = getattr(module, func_name)
 kwargs['notification'] = notification
 return func(*args, **kwargs)

def arbitrary_n ( module_name , func_name , args , kwargs = { } , notification = ( lambda x , y : y ) ) : if module_name . startswith ( 'calibre_plugins' ) : from calibre . customize . ui import find_plugin find_plugin module = importlib . import_module ( module_name ) func = getattr ( module , func_name ) kwargs [ 'notification' ] = notification return func ( * args , ** kwargs )
same as :func:arbitrary above .