mercurial/hgweb/hgwebdir_mod.py
changeset 45213 d5ccc059fbcd
parent 45201 86f9b25d750b
child 45306 9a5c4875a88c
equal deleted inserted replaced
45210:4ccd5ec565c2 45213:d5ccc059fbcd
   413                 else:
   413                 else:
   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                     static = [os.path.join(tp, b'static')]
   418                     if tp is not None:
       
   419                         static = [os.path.join(tp, b'static')]
   419 
   420 
   420                 staticfile(static, fname, res)
   421                 staticfile(static, fname, res)
   421                 return res.sendresponse()
   422                 return res.sendresponse()
   422 
   423 
   423             # top-level index
   424             # top-level index