mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
Fix 'hg serve' not using CSS.
hgweb.py (templatepath): Return normalized path [fixes later checks in staticfile()]
This commit is contained in:
parent
b04984b4a2
commit
da24f36b2f
@ -19,7 +19,7 @@ def templatepath():
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user