PythonPath for ASP

Brian Zhou brian_zhou at NOSPAMtechie.com
Mon Jul 30 01:45:09 EDT 2001


Hello group,

Currently on command line, sys.path is

['',
 'c:\\python21\\pil',
 'c:\\python21\\pythonwin',
 'c:\\python21\\win32',
 'c:\\python21\\win32\\lib',
 'c:\\python21',
 'c:\\python21\\dlls',
 'c:\\python21\\lib',
 'c:\\python21\\lib\\plat-win',
 'c:\\python21\\lib\\lib-tk',
 'c:\\python21\\numeric',
 'c:\\python21\\ppm']

But from ASP Python script:
[c:\python21\pythonwin
c:\python21\win32
c:\python21\win32\lib
c:\python21
c:\python21\lib\plat-win
c:\python21\lib
c:\python21\dlls
c:\python21\lib\lib-tk
c:\windows\system32]

You can see 'c:\\python21\\pil' is not in the path. So from ASP scripts, I
have to do
    import PIL.Image
instead of
    import Image

Is there a place I can set that makes C:\Python21\PIL in PythonPath?

Thanks for any help,

-Brian






More information about the Python-list mailing list