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 eryksun
Recipients Orbital, bugale bugale, corona10, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-03-17.16:26:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615998397.24.0.600426738723.issue43284@roundup.psfhosted.org>
In-reply-to
Content
> For the other 10% (diagnostic logging), it would be nice to have a
> better option than running "cmd /c ver"

CMD's VER command (cmd!eVersion) calls GetVersion(), for which, in its case, the API calls the internal function GetVersion_Current(). The VER command also reads the UBR value (update build revision) directly from the registry.

Other than using CMD, I suppose there's the option of creating an extension module in C++ that gets the Win32_OperatingSystem WMI data, which includes the "major.minor.build" version string. But that's much more complicated.
History
Date User Action Args
2021-03-17 16:26:37eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, corona10, bugale bugale, Orbital
2021-03-17 16:26:37eryksunsetmessageid: <1615998397.24.0.600426738723.issue43284@roundup.psfhosted.org>
2021-03-17 16:26:37eryksunlinkissue43284 messages
2021-03-17 16:26:36eryksuncreate