import Image vs from PIL import Image vs import PIL.Image

Brian Lenihan brian_ at yahoo.com
Mon Nov 4 02:55:41 EST 2002


In article <aq54gp$kin$0 at 216.39.172.122>, bokr at oz.net says...
> 
> Thanks, but that wasn't the problem. I had caused it with hacking detritus.
> 
>  Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
>  Type "help", "copyright", "credits" or "license" for more information.
>  >>> import Image
>  >>> Image.core
>  <module '_imaging' from 'D:\python22\lib\site-packages\PIL\_imaging.pyd'>
>  >>> ^Z
> 
>  [22:20] C:\pywk\pilt>cat D:\python22\lib\site-packages\PIL.pth
>  PIL
> 
> But I notice an interesting difference in the name and place of the dll. Yours
> is right under site-packages\ as PIL_imaging.pyd and mine is under
> site-packages\PIL\ as _imaging.pyd. Did you install via the binary installer?
> 

I built it myself.  Well, now I'm confused.  I removed PIL.pth and got 
the same path you do.  I put PIL.pth back and still get the same path 
you do.



More information about the Python-list mailing list