##// END OF EJS Templates
hgweb: handle None from templatedir() equally bad in webcommands.py...
Martin von Zweigbergk -
r45937:da3b7c80 default
parent child Browse files
Show More
@@ -1320,7 +1320,8 b' def static(web):'
1320 static = web.config(b"web", b"static", untrusted=False)
1320 static = web.config(b"web", b"static", untrusted=False)
1321 if not static:
1321 if not static:
1322 tp = web.templatepath or templater.templatedir()
1322 tp = web.templatepath or templater.templatedir()
1323 static = os.path.join(tp, b'static')
1323 if tp is not None:
1324 static = os.path.join(tp, b'static')
1324
1325
1325 staticfile(static, fname, web.res)
1326 staticfile(static, fname, web.res)
1326 return web.res.sendresponse()
1327 return web.res.sendresponse()
General Comments 0
You need to be logged in to leave comments. Login now