01tonythomas has uploaded a new change for review.
https://gerrit.wikimedia.org/r/185618
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(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/18/185618/1
diff --git a/pywikibot/config2.py b/pywikibot/config2.py
index 6e1a27e..32c5b74 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: newchange
Gerrit-Change-Id: I3e028d31e3ff7950f1a006ec5579558719a6736d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: 01tonythomas <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits