Commit f1efc54d authored by Daniel Stan's avatar Daniel Stan

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__)
else:
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