Use LO_DEBUG_MAILMERGE environment variable to debug mailmerge.py

This is often useful in release builds, too.

Change-Id: Icb01353541836a18834897f3da501f1b0e466f3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181771
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski
2025-02-17 16:07:39 +01:00
parent 3ee34dffdb
commit d80dd99db9
+2 -1
View File
@@ -41,13 +41,14 @@ from email.utils import formatdate
from email.utils import parseaddr
from socket import _GLOBAL_DEFAULT_TIMEOUT
import os
import sys
import ssl
import smtplib
import imaplib
import poplib
dbg = False
dbg = os.environ.get('LO_DEBUG_MAILMERGE', '').lower() not in ['', '0', 'false']
# pythonloader looks for a static g_ImplementationHelper variable
g_ImplementationHelper = unohelper.ImplementationHelper()