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 ##############
--
To view, visit
https://gerrit.wikimedia.org/r/185618
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3e028d31e3ff7950f1a006ec5579558719a6736d
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: 01tonythomas <01tonythomas(a)gmail.com>
Gerrit-Reviewer: 01tonythomas <01tonythomas(a)gmail.com>
Gerrit-Reviewer: Eranroz <eranroz89(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>