From d5921db4c7ff4125c6dbec2354276c82f765fb1f Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Fri, 24 Oct 2014 21:03:00 +0200 Subject: [PATCH] mail.py: dehardcode le path des templates --- gestion/mail/mail.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gestion/mail/mail.py b/gestion/mail/mail.py index 64fcdc24..cc2a3be7 100644 --- a/gestion/mail/mail.py +++ b/gestion/mail/mail.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python # -*- coding: utf-8 -*- import os @@ -22,7 +21,7 @@ from gestion.email_tools import format_sender from gestion import secrets_new as secrets default_language = 'fr' -template_path = '/usr/scripts/gestion/mail/template/' +template_path = os.path.join(os.path.dirname(__file__), 'template') + '/' html_template = template_path + 'html' html_mutilang_template = template_path + 'html_multilang' text_mutilang_template = template_path + 'text_multilang'