changeset 1795 | 36e19e3da12d |
parent 1793 | 83c6d8355909 |
child 1796 | a373881fdf2a |
1794:98b6c1cad58b | 1795:36e19e3da12d |
---|---|
17 |
17 |
18 def templatepath(): |
18 def templatepath(): |
19 for f in "templates", "../templates": |
19 for f in "templates", "../templates": |
20 p = os.path.join(os.path.dirname(__file__), f) |
20 p = os.path.join(os.path.dirname(__file__), f) |
21 if os.path.isdir(p): |
21 if os.path.isdir(p): |
22 return p |
22 return os.path.normpath(p) |
23 |
23 |
24 def age(x): |
24 def age(x): |
25 def plural(t, c): |
25 def plural(t, c): |
26 if c == 1: |
26 if c == 1: |
27 return t |
27 return t |