add cache/template dir, and fix get_script_dir to give '' for root
authorTero Marttila <terom@fixme.fi>
Sat, 07 Feb 2009 02:21:12 +0200
changeset 14 b88d23696b98
parent 13 178ea40bbc44
child 15 e2fe2baa7910
add cache/template dir, and fix get_script_dir to give '' for root
cache/templates/.empty_dir
lib/http.py
--- a/lib/http.py	Sat Feb 07 02:19:35 2009 +0200
+++ b/lib/http.py	Sat Feb 07 02:21:12 2009 +0200
@@ -39,7 +39,7 @@
             /foo/bar.cgi    -> /foo
         """
 
-        return os.path.dirname(self.env['SCRIPT_NAME'])
+        return os.path.dirname(self.env['SCRIPT_NAME']).rstrip('/')
     
     def get_page_prefix (self) :
         """