# HG changeset patch # User Tero Marttila # Date 1233966072 -7200 # Node ID b88d23696b98bd39884ba97bb47cd9d938df2259 # Parent 178ea40bbc44fa4ea85b660bca5367e42e7ff426 add cache/template dir, and fix get_script_dir to give '' for root diff -r 178ea40bbc44 -r b88d23696b98 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) : """