mercurial/hgweb.py
changeset 1099 0cb9c72b6c03
parent 1087 3a1a46dcd397
child 1112 87cbfaf79124
equal deleted inserted replaced
1098:50a0a36dd48a 1099:0cb9c72b6c03
     4 # Copyright 2005 Matt Mackall <mpm@selenic.com>
     4 # Copyright 2005 Matt Mackall <mpm@selenic.com>
     5 #
     5 #
     6 # This software may be used and distributed according to the terms
     6 # This software may be used and distributed according to the terms
     7 # of the GNU General Public License, incorporated herein by reference.
     7 # of the GNU General Public License, incorporated herein by reference.
     8 
     8 
     9 import os, cgi, time, re, difflib, socket, sys, zlib
     9 import os, cgi, time, re, socket, sys, zlib
    10 from mercurial.hg import *
    10 from hg import *
    11 from mercurial.ui import *
    11 from ui import *
       
    12 
    12 
    13 
    13 def templatepath():
    14 def templatepath():
    14     for f in "templates", "../templates":
    15     for f in "templates", "../templates":
    15         p = os.path.join(os.path.dirname(__file__), f)
    16         p = os.path.join(os.path.dirname(__file__), f)
    16         if os.path.isdir(p):
    17         if os.path.isdir(p):