Message112438
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. |
|
Date |
User |
Action |
Args |
2010-08-02 09:22:04 | lemburg | set | recipients:
+ lemburg, nkour |
2010-08-02 09:22:04 | lemburg | set | messageid: <1280740924.41.0.973886155553.issue1180267@psf.upfronthosting.co.za> |
2010-08-02 09:21:59 | lemburg | link | issue1180267 messages |
2010-08-02 09:21:59 | lemburg | create | |
|