mail.py: dehardcode le path des templates
This commit is contained in:
parent
080ca9408c
commit
d5921db4c7
1 changed files with 1 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue