This commit is contained in:
Charlie Jacomme 2018-08-09 16:10:27 +02:00
parent a6edbfc4ff
commit cc850b7d70

View file

@ -30,7 +30,7 @@ def generate(api_client):
all_users = api_client.list("localemail/users")
# Création de l'environnement Jinja
env = Environment(loader=FileSystemLoader('.'))
template = env.get_template(path+'\templates/list')
template = env.get_template(path+'/templates/list')
aliases_rendered = template.render(data=all_users)
fichier = open(path+'/generated/aliases','w')