diff -r 26f10ed59c8e -r 9fcf58fb113a pngtile/handlers.py --- a/pngtile/handlers.py Tue Jan 26 01:37:30 2010 +0200 +++ b/pngtile/handlers.py Tue Jan 26 01:38:16 2010 +0200 @@ -66,7 +66,11 @@ Handle request for a directory """ - prefix = os.path.dirname(req.script_root).rstrip('/') + prefix = req.script_root + + print "req.script_root:", req.script_root + print "prefix", prefix + return Response(render.dir_html(prefix, name, path), content_type="text/html") @@ -77,7 +81,7 @@ Handle request for image viewport """ - prefix = os.path.dirname(req.script_root).rstrip('/') + prefix = req.script_root # viewport return Response(render.img_html(prefix, name, image), content_type="text/html")