Ok, here is the updated regularizeFilenames:

@language python
@tabwidth -4
def regularizeName(self, fn):
    '''Return the name used as a key to this modules dictionaries.'''
    
  #this is the only change.  If you have more than one "." in the name, 
  #it will use your package instead of leo.plugins
    if fn.count(".") > 1:
        fn = fn[:-3]
    
    elif fn.endswith('.py'):
        fn = "leo.plugins." + fn[: -3]
    return fn



And here is a sample @enabled-plugins

adrianmod.hey_colorize.py

All that one needs to do after that is insure the module is in the python 
path.

On Friday, June 2, 2017 at 6:41:27 PM UTC-5, Adrian Calvin wrote:
>
> Is there a way to add additional plugin directories to leo just as one 
> might add additional paths to python?
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to