[Zope-dev] Zope and python namespaces
Dieter Maurer
dieter@handshake.de
Fri, 9 Nov 2001 21:47:46 +0100
Roch'e Compaan writes:
> I wrote an external method that uses Graphite, Sping and PIL to
> generate charts, but I ran into some namespace problems. Execution
> of the external method fails because there is a clash in the namespace
> between PIL and Zope. PIL has a module "ImageFile" and Zope does as
> well. Even if I insert PIL's path explicitly as the first entry in
> the path, Zope's ImageFile is still being used.
>
> How can I resolve this and what is the best strategy to avoid namespace
> problems here?
Use Pythons package feature, i.e. use
import PIL
PIL.ImageFile
Dieter