On Nov 23, 8:03 am, "Edward K. Ream" <[EMAIL PROTECTED]> wrote:

> > I would like Leo to keep a list or iterable which held
> > the names of the enabled plugins...
> That's g.app.loadedPlugins
>
> > I would also like a way to determine what file was
> > responsible for enabling the plugin.
>
> That info doesn't exist yet.  I'll put it on the things to do soon.

Actually, the info does exist (sorta, see below), because only one
@enabled-plugin node is active for any one file.  The last file for
which an @enabled-plugin node was found is

g.app.config.enabledPluginsFileName

If only one .leo file is open, this will be the name of the file that
contains the active @enabled-plugins node.  However, if more than
one .leo file is open, this will be the name of the last opened .leo
file that contains an @enabled-plugin node, which isn't the same
thing.

I'll add a dictionary that will give the file name that caused each
plugin to be loaded.

Edward
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to