[Zope-dev] Re: Why third_party/docutils?

Tres Seaver tseaver at zope.com
Mon Nov 29 16:59:12 EST 2004


Dieter Maurer wrote:
> Andreas Jung wrote at 2004-11-29 12:59 +0100:
> 
>>....
>>Independent of its location there is a need to adjust sys.path
>>to make imports working (it does not matter if it is under lib/python or
>>lib/python/third_party).
> 
> 
> A much clearer approach (than "sys.path" tweaking) would be
> to modify the imports for "docutils":
> 
>    from docutils import ...
> 
> to
> 
>    from third_party.docutils import ...

While I approve in theory of such a rename, the problem in practice will 
be if docutils *itself* uses "absolute" imports.  Guido's long-standing 
hostility to improving relative imports will bite us again, here.

> I expect "docutils" use is quite local.

Outside the package itself, only zREST depends on it, I think.


Tres.
-- 
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com



More information about the Zope-Dev mailing list