Skip to content
Snippets Groups Projects
Commit d844e220792a authored by Mads Kiilerich's avatar Mads Kiilerich
Browse files

templater: don't search randomly for templates - trust util.datapath

The search was introduced in 2653740d8118. It might have been necessary back
then when using __file__ directly and frozen-ness wasn't considered. Now we
should know exactly where the templates can be found.
parent 660861a6fad4
No related branches found
No related tags found
No related merge requests found
......@@ -711,7 +711,7 @@
def templatepaths():
'''return locations used for template files.'''
pathsrel = ['templates', '../templates']
pathsrel = ['templates']
paths = [os.path.normpath(os.path.join(util.datapath, f))
for f in pathsrel]
return [p for p in paths if os.path.isdir(p)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment