[mod_python] psp_site example doesn't work

Jorey Bump list at joreybump.com
Mon Jan 24 16:53:56 EST 2005


Graham Dumpleton wrote:
> Jorey Bump wrote ..
> 
>>There is no mechanism in Python to import a module by file path, so it's
>>consistent, but confusing. The alternative would have been to force a 
>>working directory onto the user, much like a cgi-bin, and prepend that
>>to sys.path.
> 
> That "there is no mechanism in Python to import a module by file path"
> isn't strictly true. There are actually a couple of ways of achieving it.

I realized my poor choice of words as soon as I hit the send button. 
Obviously, it's possible, or you couldn't design your own import 
mechanism...

> Now if you mean't specifically that one can't use the "import" statement to
> import a module by path, then you are true.

That's what I meant. Mea culpa. :P



More information about the Mod_python mailing list