comparison mercurial/hgweb.py @ 1795:36e19e3da12d

Fix 'hg serve' not using CSS. hgweb.py (templatepath): Return normalized path [fixes later checks in staticfile()]
author Lee Cantey <lcantey@gmail.com>
date Thu, 23 Feb 2006 12:02:39 +0100
parents 83c6d8355909
children a373881fdf2a
comparison
equal deleted inserted replaced
1794:98b6c1cad58b 1795:36e19e3da12d
17 17
18 def templatepath(): 18 def templatepath():
19 for f in "templates", "../templates": 19 for f in "templates", "../templates":
20 p = os.path.join(os.path.dirname(__file__), f) 20 p = os.path.join(os.path.dirname(__file__), f)
21 if os.path.isdir(p): 21 if os.path.isdir(p):
22 return p 22 return os.path.normpath(p)
23 23
24 def age(x): 24 def age(x):
25 def plural(t, c): 25 def plural(t, c):
26 if c == 1: 26 if c == 1:
27 return t 27 return t