Importing custome modules from command line works but fails in a CGI under Apache

Jerome Chan jchan at maxvu.com
Sat Mar 11 20:06:25 EST 2000


Okie, I have my own classes which I put in a folder called maxvu. These are
just plain python classes. I put this folder in a the
/usr/local/lib/python1.5/ directory.

On the interactive environment when I do a

import maxvu.message

it works but when I try this under a cgi script, it fails with an
ImportError.

Printing out sys.path reveals that they are both essentially the same
(except for the directory where the scripts were started).

What have I done wrong?






More information about the Python-list mailing list