|
Ron Alford
ronwalf at wam.umd.edu
Wed Sep 3 14:34:22 EST 2003
On Wed, 3 Sep 2003, Ron Alford wrote:
> import_module has a tendency to throw 404s when you have multiple scripts
> of the same name in different directories. Is there a known way of
> getting around this problem?
>
> My own mod_python handler is effected, and I suspect publisher is, too.
>
This is how I fixed it in apache.py:
...
if not file or (path and not os.path.dirname(file) in path):
raise SERVER_RETURN, HTTP_NOT_FOUND
if autoreload:
...
goes to
...
if not file or (path and not os.path.dirname(file) in path):
#raise SERVER_RETURN, HTTP_NOT_FOUND
mtime, oldmtime = 0, -1
elif autoreload:
...
--
Ron Alford, KB0NUV
http://volus.net/~ronwalf
|