On Dec 7, 10:07 pm, "Ville M. Vainio" <[email protected]> wrote:
> 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):
>

Thanks for the good answer and useful information.

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

I followed your link and looked at your changes.  I like them.

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

There seems to be a problem with your suggestion.  Your change
(referenced above) does NOT prepend "leo.plugins" if the plugin name
does NOT end with ".py".  But it is not in 4.8-final.  Consequently,
when I put "LeoBob02.clone_nav" into myLeoSettings.leo,
leoPlugins.py -- loadOnePlugin() calls regularizeName() which prepends
"leo.plugins" and
it tries to __import__ "leo.plugins.LeoBob02.clone_nav" and this
fails.

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