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 lemburg
Recipients lemburg, nkour
Date 2010-08-02.09:21:59
SpamBayes Score 6.0062195e-07
Marked as misclassified No
Message-id <1280740924.41.0.973886155553.issue1180267@psf.upfronthosting.co.za>
In-reply-to
Content
You appear to be requesting two things:

 1. Determine the Windows version by looking at sys.getwindowsversion() rather than relying on the ver command line tool.

 2. Use lsb_release to fetch the release name on Linux systems that support it.

The first is possible, if that API is available. It would still have to fall back to the ver command line tool, since it's not future-proof, i.e. future versions of Windows will not automatically be supported.

The second is wrong, since platform.release() is only a short-cut to the uname() function and this refers to the underlying system rather than the Linux distrubtion.

However, I could add support for lsb_release to the linux_distribution() function.
History
Date User Action Args
2010-08-02 09:22:04lemburgsetrecipients: + lemburg, nkour
2010-08-02 09:22:04lemburgsetmessageid: <1280740924.41.0.973886155553.issue1180267@psf.upfronthosting.co.za>
2010-08-02 09:21:59lemburglinkissue1180267 messages
2010-08-02 09:21:59lemburgcreate