[Python-talk] recognizing XP systems

Python python at venix.com
Fri Apr 14 15:01:52 EDT 2006


I need to distinguish between NT family Windows and Win95/98/ME.  I use
	import os
	os.uname()[2]
and look for '2000' and 'NT'.

I do not have an XP system.  If someone with easy access to Python on XP
could tell me what os.uname() returns, I'd greatly appreciate it.  (I'm
running out to give blood now, so you won't get an immediate reply.
Today, the Red Cross.  Tomorrow the IRS.  :-)

-- 
Lloyd Kvam
Venix Corp



More information about the Python-talk mailing list