mercurial/hgweb/hgwebdir_mod.py
changeset 45306 9a5c4875a88c
parent 45213 d5ccc059fbcd
child 45314 d12fba074cc6
equal deleted inserted replaced
45305:e2320bb7a99f 45306:9a5c4875a88c
   414                     fname = req.qsparams[b'static']
   414                     fname = req.qsparams[b'static']
   415                 static = self.ui.config(b"web", b"static", untrusted=False)
   415                 static = self.ui.config(b"web", b"static", untrusted=False)
   416                 if not static:
   416                 if not static:
   417                     tp = self.templatepath or templater.templatedir()
   417                     tp = self.templatepath or templater.templatedir()
   418                     if tp is not None:
   418                     if tp is not None:
   419                         static = [os.path.join(tp, b'static')]
   419                         static = os.path.join(tp, b'static')
   420 
   420 
   421                 staticfile(static, fname, res)
   421                 staticfile(static, fname, res)
   422                 return res.sendresponse()
   422                 return res.sendresponse()
   423 
   423 
   424             # top-level index
   424             # top-level index