[Zope-dev] [Zope2/Multi-Version-Eggs] Imports behaving strange

Dieter Maurer dieter at handshake.de
Wed Jan 16 13:30:49 EST 2008


Andreas Jung wrote at 2008-1-16 19:23 +0100:
> ...
>> You need your "pkg_require" in Zope proper (not in "zopectl").
>
>...which does not solve the problem (of *course* tried that :-))

"pkg_require" works by fetching the distribution and putting it
far ahead on "sys.path".

This means, it will have no effect when the respective package has
already been imported.

Furthermore, later "sys.path" manipulations may partially undo
the effect of a former "pkg_require".



-- 
Dieter


More information about the Zope-Dev mailing list