use of import of PIL incorrectly documented, or is it just me ?

Steve Holden sholden at holdenweb.com
Tue May 1 10:13:40 EDT 2001


"Jim Abrams" <jim at publishingresources.com> wrote in message
news:Xns909462A7C534Cjimpublishingresourc at 64.152.100.91...
> Max Møller Rasmussen <maxm at normik.dk> wrote in
> <mailman.988720921.32079.python-list at python.org>:
>
> >
> >import sys
> >sys.path.append('C:/Python20/Lib/site-packages')
>
>
> Careful about using this if the interpreter isn't restarted every time
(i.e.
> Python in ASP) since this adds the path over and over.
> Maybe
> if sys.path.count('C:/Python20/Lib/site-packages') == 0:
>   sys.path.append('C:/Python20/Lib/site-packages')
>
>
> Also site-packages isn't put into the Python Path with ActiveState
> ActivePython. You can add it to the registry.
> HKEY_LOCAL_MACHINE/Python/PythonCore/20/
>
> Look at the other keys there and copy one and put in site-packages.
>

Although one might use the sitecustomize module for this, since that is what
it is provided for ...

> You'll have to do it again when/if you upgrade to 2.1
>
>
Or simply copy over your 2.0 sitecustomize.py ...

> >I'm using Activestate 2.0. on windows 2000 Pro. Maybe there is something
> >wrong with my installation, or Activestates installer? It's all just
plain
> >vanilla.
>
regards
 Steve





More information about the Python-list mailing list