Show More
@@ -848,17 +848,17 b' def _readmapfile(mapfile):' | |||
|
848 | 848 | val = conf.get(b'templates', b'__base__') |
|
849 | 849 | if val and val[0] not in b"'\"": |
|
850 | 850 | # treat as a pointer to a base class for this style |
|
851 |
path = |
|
|
851 | path = os.path.normpath(os.path.join(base, val)) | |
|
852 | 852 | |
|
853 | 853 | # fallback check in template paths |
|
854 | 854 | if not os.path.exists(path): |
|
855 | 855 | dir = templatedir() |
|
856 | 856 | if dir is not None: |
|
857 |
p2 = |
|
|
857 | p2 = os.path.normpath(os.path.join(dir, val)) | |
|
858 | 858 | if os.path.isfile(p2): |
|
859 | 859 | path = p2 |
|
860 | 860 | else: |
|
861 |
p3 = |
|
|
861 | p3 = os.path.normpath(os.path.join(p2, b"map")) | |
|
862 | 862 | if os.path.isfile(p3): |
|
863 | 863 | path = p3 |
|
864 | 864 |
General Comments 0
You need to be logged in to leave comments.
Login now