On Sat, Nov 22, 2008 at 6:33 AM, Kent Tenney <[EMAIL PROTECTED]> wrote:
> Is there an API which lists active plugins?
Here is the code for leoPlugins.isLoaded:
def isLoaded (name):
if name.endswith('.py'): name = name[:-3]
return name in g.app.loadedPlugins
This tells us that g.app.loadedPlugins contains the module names
(without the trailing ".py") of all loaded plugins. If you want to
know about a single plugin, just call leoPlugins.isLoaded(plugin_name)
Edward
--------------------------------------------------------------------
Edward K. Ream email: [EMAIL PROTECTED]
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---