Commit f1efc54d authored by Daniel STAN's avatar Daniel STAN
Browse files

mail: si ipython, ne peut pas remplir le mailer

parent b98ff1f8
......@@ -88,7 +88,10 @@ def generate(mail, params, lang=default_language, lang_fallback=default_language
# Retrouve le nom du fichire ayant fait l'appel à la fonction
frm = inspect.stack()[1]
mod = inspect.getmodule(frm[0])
params['mailer'] = os.path.abspath(mod.__file__)
if mod:
params['mailer'] = os.path.abspath(mod.__file__)
params['mailer'] = 'unknown file (%s)' % os.getlogin()
msg = MIMEMultipart('alternative')
if os.path.isdir(template_path + mail):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment