jenkins-bot has submitted this change and it was merged.
Change subject: MySQLPageGenerator fall back to .my.cnf if config.db_hostname etc are not set ......................................................................
MySQLPageGenerator fall back to .my.cnf if config.db_hostname etc are not set
code courtesy: jayvdb ( John Vandenberg )
Bug: T75147 Change-Id: I3e028d31e3ff7950f1a006ec5579558719a6736d --- M pywikibot/config2.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved Eranroz: Looks good to me, but someone else must approve jenkins-bot: Verified
diff --git a/pywikibot/config2.py b/pywikibot/config2.py index 6e1a27e..6fea03a 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -554,7 +554,7 @@ db_username = '' db_password = '' db_name_format = '{0}' -db_connect_file = None +db_connect_file = os.path.expanduser('~/.my.cnf')
# ############# SEARCH ENGINE SETTINGS ##############