mail.py: dehardcode le path des templates

This commit is contained in:
Daniel STAN 2014-10-24 21:03:00 +02:00
parent 080ca9408c
commit d5921db4c7

View file

@ -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'