equal
deleted
inserted
replaced
1070 '''return location of template file. returns None if not found.''' |
1070 '''return location of template file. returns None if not found.''' |
1071 dir = templatedir() |
1071 dir = templatedir() |
1072 if dir is None: |
1072 if dir is None: |
1073 return None |
1073 return None |
1074 f = os.path.join(templatedir(), name) |
1074 f = os.path.join(templatedir(), name) |
1075 if f and os.path.exists(f): |
1075 if f and os.path.isfile(f): |
1076 return f |
1076 return f |
1077 return None |
1077 return None |
1078 |
1078 |
1079 |
1079 |
1080 def stylemap(styles, path=None): |
1080 def stylemap(styles, path=None): |