On Wed, Dec 8, 2010 at 6:05 AM, Bob Hossley <[email protected]> wrote:

> File leoPlugins.py in the Leo core uses function __import__().
> In my case this loads .py files from directory
> /usr/lib/pymodules/python2.6/leo/plugins.
>
> File plugins_menu.py only considers .py files in directory:
>        os.path.join(g.app.loadDir,"..","plugins")
> In my case this is directory /usr/share/pyshared/leo/plugins.
>
> Are there good reasons for this inconsistency?  I hope you were already
> aware of the inconsistency and that it is not causing other problems of
> which I'm unaware.

It is a sort of known issue.

plugins_menu does not work perfectly with the new plugin loading
system (because the new way is much more flexible than the old one,
but plugins_menu retained the rigidity):

Some background:

http://www.mail-archive.com/[email protected]/msg11447.html

Note that you don't need to create the soft link if your plugin is
somewhere along sys.path (so you could use e.g. "setup.py develop"
with your plugin).

plugins_menu should be fixed to consider all the loaded plugins,
perhaps to follow g.plugin_signon().

-- 
Ville M. Vainio @@ Forum Nokia

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