Hey guys, I just played with PIL on Zope. I used the Poll product to see how it basically works. But now I have the problem that I can't load an Image because there is a module in /App called ImageFile and one in /PIL called ImageFile. Well when I say Image.open(), it always goes to /App/ImageFile.py and not to /PIL/ImageFile.py. Any suggestions how I can fix that? regards, Stephan -- Stephan Richter - (901) 573-3308 - srichter@cbu.edu CBU - Physics & Chemistry; Framework Web - Web Design & Development PGP Key: 735E C61E 5C64 F430 4F9C 798E DCA2 07E3 E42B 5391
Stephan Richter wrote:
Hey guys,
I just played with PIL on Zope. I used the Poll product to see how it basically works. But now I have the problem that I can't load an Image because there is a module in /App called ImageFile and one in /PIL called ImageFile. Well when I say Image.open(), it always goes to /App/ImageFile.py and not to /PIL/ImageFile.py.
Any suggestions how I can fix that?
I do not have a complete answer, but as far as I recall you'll have to make PIL into a package and import the most relevant modules in the __init__.py This question has come up before, you could try and search the mail archives. hth Rik
I do not have a complete answer, but as far as I recall you'll have to make PIL into a package and import the most relevant modules in the __init__.py This question has come up before, you could try and search the mail archives.
hth
Rik
Thanks Rik. I found the mail form Nick. That fixed it in Linux. Unfortunately not in Windoze. But what the heck, I run Linux on my production system, so that is what counts. :) Regards, Stephan -- Stephan Richter - (901) 573-3308 - srichter@cbu.edu CBU - Physics & Chemistry; Framework Web - Web Design & Development PGP Key: 735E C61E 5C64 F430 4F9C 798E DCA2 07E3 E42B 5391
participants (2)
-
Rik Hoekstra -
Stephan Richter