Show More
@@ -1047,12 +1047,8 b' class templater(object):' | |||||
1047 |
|
1047 | |||
1048 | def templatepaths(): |
|
1048 | def templatepaths(): | |
1049 | '''return locations used for template files.''' |
|
1049 | '''return locations used for template files.''' | |
1050 | pathsrel = [b'templates'] |
|
1050 | path = os.path.normpath(os.path.join(resourceutil.datapath, b'templates')) | |
1051 | paths = [ |
|
1051 | return [path] if os.path.isdir(path) else [] | |
1052 | os.path.normpath(os.path.join(resourceutil.datapath, f)) |
|
|||
1053 | for f in pathsrel |
|
|||
1054 | ] |
|
|||
1055 | return [p for p in paths if os.path.isdir(p)] |
|
|||
1056 |
|
1052 | |||
1057 |
|
1053 | |||
1058 | def templatepath(name): |
|
1054 | def templatepath(name): |
General Comments 0
You need to be logged in to leave comments.
Login now