Commit d646c9c2 authored by JEAN Sébastien's avatar JEAN Sébastien Committed by Laurent Bachelier

tools: Fix crash when template contains unicode characters

parent fbf91d70
...@@ -36,7 +36,7 @@ BOILERPLATE_PATH = os.getenv( ...@@ -36,7 +36,7 @@ BOILERPLATE_PATH = os.getenv(
'BOILERPLATE_PATH', 'BOILERPLATE_PATH',
os.path.realpath(os.path.join(os.path.dirname(__file__), 'boilerplate_data'))) os.path.realpath(os.path.join(os.path.dirname(__file__), 'boilerplate_data')))
TEMPLATES = TemplateLookup(directories=[BOILERPLATE_PATH]) TEMPLATES = TemplateLookup(directories=[BOILERPLATE_PATH], input_encoding='utf-8')
def write(target, contents): def write(target, contents):
......
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