[Python-talk] recognizing XP systems
Lloyd Kvam
lkvam at venix.com
Mon Apr 17 17:06:37 EDT 2006
On Mon, 2006-04-17 at 15:58 -0400, Bill McGonigle wrote:
> On Apr 17, 2006, at 14:39, Ray Cote wrote:
>
> > Try platform.uname()
> > Returns a tuple, third element of which says 'XP' and fourth element
> > of which is 5.1.2600 (at least on my machine).
> > --Ray
>
> Bugger. On 2k3:
>
> ('Microsoft', 'vm2k3', 'Windows', '5.2.3790', '', '')
That is unfortunate, but not an issue for the moment. Right now I only
need correct behavior on desktops. However, by the time I need to worry
about 2k3 or vista, all of the old win98 and ME machines may be gone.
Perhaps I should be using [3], the version number.
Thanks.
>
> [1] is the machine name. Maybe [3] is reliable?
>
> -----
> Bill McGonigle, Owner Work: 603.448.4440
> BFC Computing, LLC Home: 603.448.1668
> bill at bfccomputing.com Cell: 603.252.2606
> http://www.bfccomputing.com/ Page: 603.442.1833
> Blog: http://blog.bfccomputing.com/
> VCard: http://bfccomputing.com/vcard/bill.vcf
>
> _______________________________________________
> Python-talk mailing list
> Python-talk at dlslug.org
> http://dlslug.org/mailman/listinfo/python-talk
--
Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358
voice: 603-653-8139
fax: 320-210-3409
More information about the Python-talk
mailing list