mercurial/hgweb.py
changeset 1400 cf9a1233738a
parent 1369 b6d4ebebc35c
child 1402 9d2c2e6b32b5
equal deleted inserted replaced
1399:9a70776e355e 1400:cf9a1233738a
     9 import os, cgi, sys
     9 import os, cgi, sys
    10 from demandload import demandload
    10 from demandload import demandload
    11 demandload(globals(), "mdiff time re socket zlib errno ui hg ConfigParser")
    11 demandload(globals(), "mdiff time re socket zlib errno ui hg ConfigParser")
    12 demandload(globals(), "zipfile tempfile StringIO tarfile BaseHTTPServer util")
    12 demandload(globals(), "zipfile tempfile StringIO tarfile BaseHTTPServer util")
    13 from node import *
    13 from node import *
       
    14 from i18n import gettext as _
    14 
    15 
    15 def templatepath():
    16 def templatepath():
    16     for f in "templates", "../templates":
    17     for f in "templates", "../templates":
    17         p = os.path.join(os.path.dirname(__file__), f)
    18         p = os.path.join(os.path.dirname(__file__), f)
    18         if os.path.isdir(p):
    19         if os.path.isdir(p):