[MediaWiki-commits] [Gerrit] Allow pywikibot to run on Windows 10 as well - change (pywikibot/core)
jenkins-bot has submitted this change and it was merged. Change subject: Allow pywikibot to run on Windows 10 as well .. Allow pywikibot to run on Windows 10 as well cherry-picked from 426471882e662 Bug: T132273 Bug: T134550 Change-Id: I5c334d28dec7acfd0c65aef02f8144afee82275c --- M pywikibot/config2.py 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/config2.py b/pywikibot/config2.py index 996228d..731ed8a 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -268,10 +268,10 @@ home = os.path.expanduser("~") if sys.platform == 'win32': import platform -win_version = int(platform.version()[0]) +win_version = int(platform.version().split(".")[0]) if win_version == 5: sub_dir = ["Application Data"] -elif win_version == 6: +elif win_version in (6, 10): sub_dir = ["AppData", "Roaming"] else: raise WindowsError(u'Windows version %s not supported yet.' -- To view, visit https://gerrit.wikimedia.org/r/287168 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5c334d28dec7acfd0c65aef02f8144afee82275c Gerrit-PatchSet: 3 Gerrit-Project: pywikibot/core Gerrit-Branch: 2.0 Gerrit-Owner: XqtGerrit-Reviewer: Hazard-SJ Gerrit-Reviewer: John Vandenberg Gerrit-Reviewer: Josve05a Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] Allow pywikibot to run on Windows 10 as well - change (pywikibot/core)
Xqt has uploaded a new change for review. https://gerrit.wikimedia.org/r/287168 Change subject: Allow pywikibot to run on Windows 10 as well .. Allow pywikibot to run on Windows 10 as well Bug: T132273 Change-Id: I5c334d28dec7acfd0c65aef02f8144afee82275c --- M pywikibot/config2.py 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/68/287168/1 diff --git a/pywikibot/config2.py b/pywikibot/config2.py index 996228d..731ed8a 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -268,10 +268,10 @@ home = os.path.expanduser("~") if sys.platform == 'win32': import platform -win_version = int(platform.version()[0]) +win_version = int(platform.version().split(".")[0]) if win_version == 5: sub_dir = ["Application Data"] -elif win_version == 6: +elif win_version in (6, 10): sub_dir = ["AppData", "Roaming"] else: raise WindowsError(u'Windows version %s not supported yet.' -- To view, visit https://gerrit.wikimedia.org/r/287168 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5c334d28dec7acfd0c65aef02f8144afee82275c Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: 2.0 Gerrit-Owner: XqtGerrit-Reviewer: Hazard-SJ ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] Allow pywikibot to run on Windows 10 as well - change (pywikibot/core)
jenkins-bot has submitted this change and it was merged. Change subject: Allow pywikibot to run on Windows 10 as well .. Allow pywikibot to run on Windows 10 as well Change-Id: I5c334d28dec7acfd0c65aef02f8144afee82275c --- M pywikibot/config2.py 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/config2.py b/pywikibot/config2.py index 419e825..5f82eaa 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -294,10 +294,10 @@ base_dir_cand = [] home = os.path.expanduser("~") if OSWIN32: -win_version = int(platform.version()[0]) +win_version = int(platform.version().split(".")[0]) if win_version == 5: sub_dir = ["Application Data"] -elif win_version == 6: +elif win_version in (6, 10): sub_dir = ["AppData", "Roaming"] else: raise WindowsError(u'Windows version %s not supported yet.' -- To view, visit https://gerrit.wikimedia.org/r/255334 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5c334d28dec7acfd0c65aef02f8144afee82275c Gerrit-PatchSet: 2 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Hazard-SJGerrit-Reviewer: John Vandenberg Gerrit-Reviewer: Ladsgroup Gerrit-Reviewer: Xqt Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] Allow pywikibot to run on Windows 10 as well - change (pywikibot/core)
Hazard-SJ has uploaded a new change for review. https://gerrit.wikimedia.org/r/255334 Change subject: Allow pywikibot to run on Windows 10 as well .. Allow pywikibot to run on Windows 10 as well Change-Id: I5c334d28dec7acfd0c65aef02f8144afee82275c --- M pywikibot/config2.py 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/34/255334/1 diff --git a/pywikibot/config2.py b/pywikibot/config2.py index 419e825..5f82eaa 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -294,10 +294,10 @@ base_dir_cand = [] home = os.path.expanduser("~") if OSWIN32: -win_version = int(platform.version()[0]) +win_version = int(platform.version().split(".")[0]) if win_version == 5: sub_dir = ["Application Data"] -elif win_version == 6: +elif win_version in (6, 10): sub_dir = ["AppData", "Roaming"] else: raise WindowsError(u'Windows version %s not supported yet.' -- To view, visit https://gerrit.wikimedia.org/r/255334 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5c334d28dec7acfd0c65aef02f8144afee82275c Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Hazard-SJ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits