valhallasw added a subscriber: Ladsgroup.
valhallasw added a comment.
Ah! I found the issue. The `stable` version on tools.wmflabs.org is not
actually the latest version in the `2.0` branch on github. Specifically:
if sys.platform == 'win32':
import platform
win_version = int(platform.version()[0])
if win_version == 5:
sub_dir = ["Application Data"]
elif win_version == 6:
sub_dir = ["AppData", "Roaming"]
else:
raise WindowsError(u'Windows version %s not supported yet.'
% win_version)
which indeed explains the behavior you observe. This was fixed in
https://github.com/wikimedia/pywikibot-core/commit/ea0c637285db1169bf456fa686058dfd5d41852a
, which is on github, but not in the zip.
@Ladsgroup, do you know why the stable version doesn't match up with the 2.0
branch?
@darkshadowtnt:
As a quick workaround, download config2.py from github:
https://raw.githubusercontent.com/wikimedia/pywikibot-core/2.0/pywikibot/config2.py
and overwrite the existing pywikibot/config2.py with that version.
TASK DETAIL
https://phabricator.wikimedia.org/T135015
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: Ladsgroup, valhallasw, Aklapper, Zppix, pywikibot-bugs-list, DarkShadowTNT,
Mdupont, jayvdb
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs