Fix #456 - make argument a string.

This commit is contained in:
moyercw 2017-01-08 19:57:04 +00:00
parent 2031902f1c
commit 32bc11cfff

View file

@ -36,7 +36,7 @@ def __exporter_from_file(template_file):
"""Create a template class from a file"""
name = os.path.basename(template_file).replace(".template", "")
template = Template.from_file(template_file)
return type("{}Exporter".format(name.title()), (GenericTemplateExporter, ), {
return type(str("{}Exporter".format(name.title())), (GenericTemplateExporter, ), {
"names": [name],
"extension": template.extension,
"template": template