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.'
pywikibot-commits@lists.wikimedia.org