equal
deleted
inserted
replaced
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): |