Commit ae68dc1a by xgecko

Updated to not append template_extension if it is already there.

parent b8a3d0c6
......@@ -92,7 +92,8 @@ class Locator(object):
template_extension = self.template_extension
if template_extension is not False:
file_name += os.path.extsep + template_extension
if not file_name.endswith(template_extension):
file_name += os.path.extsep + template_extension
return file_name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment