##// END OF EJS Templates
templater: don't search randomly for templates - trust util.datapath...
Mads Kiilerich -
r22636:d844e220 default
parent child Browse files
Show More
@@ -711,7 +711,7 b' class templater(object):'
711
711
712 def templatepaths():
712 def templatepaths():
713 '''return locations used for template files.'''
713 '''return locations used for template files.'''
714 pathsrel = ['templates', '../templates']
714 pathsrel = ['templates']
715 paths = [os.path.normpath(os.path.join(util.datapath, f))
715 paths = [os.path.normpath(os.path.join(util.datapath, f))
716 for f in pathsrel]
716 for f in pathsrel]
717 return [p for p in paths if os.path.isdir(p)]
717 return [p for p in paths if os.path.isdir(p)]
General Comments 0
You need to be logged in to leave comments. Login now