mercurial/hgweb/hgwebdir_mod.py
changeset 36895 a5c478843c82
parent 36894 ee395147bb28
child 36897 d7fd203e36cc
equal deleted inserted replaced
36894:ee395147bb28 36895:a5c478843c82
   540             vars['style'] = style
   540             vars['style'] = style
   541 
   541 
   542         sessionvars = webutil.sessionvars(vars, r'?')
   542         sessionvars = webutil.sessionvars(vars, r'?')
   543         logourl = config('web', 'logourl')
   543         logourl = config('web', 'logourl')
   544         logoimg = config('web', 'logoimg')
   544         logoimg = config('web', 'logoimg')
   545         staticurl = config('web', 'staticurl') or url + 'static/'
   545         staticurl = (config('web', 'staticurl')
       
   546                      or wsgireq.req.apppath + '/static/')
   546         if not staticurl.endswith('/'):
   547         if not staticurl.endswith('/'):
   547             staticurl += '/'
   548             staticurl += '/'
   548 
   549 
   549         defaults = {
   550         defaults = {
   550             "encoding": encoding.encoding,
   551             "encoding": encoding.encoding,