Fix 'hg serve' not using CSS.
authorLee Cantey <lcantey@gmail.com>
Thu, 23 Feb 2006 12:02:39 +0100
changeset 1795 36e19e3da12d
parent 1794 98b6c1cad58b
child 1796 a373881fdf2a
Fix 'hg serve' not using CSS. hgweb.py (templatepath): Return normalized path [fixes later checks in staticfile()]
mercurial/hgweb.py
--- a/mercurial/hgweb.py	Thu Feb 23 02:17:08 2006 +0100
+++ b/mercurial/hgweb.py	Thu Feb 23 12:02:39 2006 +0100
@@ -19,7 +19,7 @@
     for f in "templates", "../templates":
         p = os.path.join(os.path.dirname(__file__), f)
         if os.path.isdir(p):
-            return p
+            return os.path.normpath(p)
 
 def age(x):
     def plural(t, c):