> Let's say that my plugin, called lily, has the following tree:
> 
> 
> lily
> ├── ext
> │   └── pygmentplugin.py
> └── setup.py

You need setup.py one level higher, then create an empty file called
__init__.py in the lily and ext directories.  At that point you should
be able to say 'python -c "from lily.ext.pygmentplugin import
LilyLexer"' (the same as you specified for the entry point) from the
directory above lily.  Then a 'python setup.py develop' should allow you
to run that from any directory (keep in mind that you need to activate
the virtualenv before the setup.py develop, and still have it active
when you try to import from another dir).

Once you get that working, you should be able to run pygmentize and have
it find your plugin.  When you write a plugin, that means it no longer
has to be anywhere near your pygments source dir.

> I wrote my files using these ones as a basis.
> I attach them just in case it helps to find some error.

You have one minor indentation problem near 'mimetypes', but other than
that, looks fine.

Tim

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" 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/pocoo-libs?hl=en.

Reply via email to