This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Evernow
Recipients Evernow, eryksun, lemburg, lukasz.langa, miss-islington, paul.moore, sahsariga111, steve.dower, tim.golden, zach.ware
Date 2022-03-28.03:14:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648437287.11.0.0176618084546.issue45382@roundup.psfhosted.org>
In-reply-to
Content
As mentioned wmic is deprecated ( https://docs.microsoft.com/en-us/windows/win32/wmisdk/wmic ). 

I don't see why the wmi module ( https://pypi.org/project/WMI/ ) can't be used instead to get the information, I have a working implementation of this that simply does the following: 

current_major_version = wmi.WMI().Win32_OperatingSystem()[0].Caption.encode("ascii", "ignore").decode(
            "utf-8")
if "8" in current_major_version:
        pass
elif "7" in current_major_version:  
        pass
elif "10" in current_major_version:  
        pass
elif "11" in current_major_version:
	pass
History
Date User Action Args
2022-03-28 03:14:47Evernowsetrecipients: + Evernow, lemburg, paul.moore, tim.golden, lukasz.langa, zach.ware, eryksun, steve.dower, miss-islington, sahsariga111
2022-03-28 03:14:47Evernowsetmessageid: <1648437287.11.0.0176618084546.issue45382@roundup.psfhosted.org>
2022-03-28 03:14:47Evernowlinkissue45382 messages
2022-03-28 03:14:47Evernowcreate