Philipp Knüsel schrieb:
> Hello!
> 
>  I try to "register" the rst-directive for the use with docutils.
>  Therefore I copied the rst-directive.py into 
> docutils/parsers/rst/directives/.
>  I added the 'sourcecode':('rst-directive', 'pygments_directive')} to
>  the _directive_registry in the __init__.py File.
> 
>  Executing the rst2html file works, but there is this message:
> 
>  
> /usr/lib/python2.5/site-packages/Pygments-0.9-py2.5.egg/pygments/plugin.py:39:
>  UserWarning: Module docutils was already imported from
>  /usr/lib/python2.5/site-packages/docutils/__init__.py,
>  but /usr/lib/python2.5/site-packages is being added to sys.path
>  import pkg_resources
> 
>  Do I need to change something?

These warnings from pkg_resources can be ignored; they just notify you
that some egg contains a package that is already imported.

If they bother you, look at 
http://lucumr.pocoo.org/cogitations/2008/02/19/sick-of-pkg_resources-warnings/ 
how to disable them.

Cheers,
Georg


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