I run Leo-editor under Ubuntu 10.04.  I installed Leo-editor from
leo_4.8-1_all.deb.  This installation put the Leo-editor source files
into subtree /usr/share/pyshared/leo and it put soft links
to these files in subtree /usr/lib/pymodules/python2.6/leo.

I wrote a plugin and put it in file
/home/bob/svnMyWork/LeoBob02/clone_nav.py.  To debug my plugin, I made a
soft link:  /usr/lib/pymodules/python2.6/leo/plugins/clone_nav.py.  And
I enabled clone_nav.py in myLeoSettings.leo.

This caused clone_nav to be loaded and initialized.  My plugin seemed to
work fine.  But there was no clone_nav entry in the Plugins menu.  I dug
into this problem for a day or two and learned enough to conjecture that
if I made a soft link /usr/share/pyshared/leo/plugins/clone_nav.py, then
clone_nav would appear in the Plugins menu.  This conjecture proved to
be true.

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.

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