mercurial/hgweb/hgwebdir_mod.py
changeset 45201 86f9b25d750b
parent 45199 91aa9bba3dc9
child 45213 d5ccc059fbcd
equal deleted inserted replaced
45200:4e9b39033d3f 45201:86f9b25d750b
   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                     if isinstance(tp, bytes):
   418                     static = [os.path.join(tp, b'static')]
   419                         tp = [tp]
       
   420                     static = [os.path.join(p, b'static') for p in tp]
       
   421 
   419 
   422                 staticfile(static, fname, res)
   420                 staticfile(static, fname, res)
   423                 return res.sendresponse()
   421                 return res.sendresponse()
   424 
   422 
   425             # top-level index
   423             # top-level index