[Python-talk] recognizing XP systems

Python python at venix.com
Mon Apr 17 15:08:56 EDT 2006


Apparently Windows is setup a bit differently from the Linux libraries.
There was no os.uname.

So, it's a matter of
	import platform
	platform.uname()

which returned XP on my syster's computer.  I appreciate the responses.
The issue is detecting whether services such as MySQL could be run OK.


On Mon, 2006-04-17 at 11:21 -0400, Bill McGonigle wrote:
> On Apr 14, 2006, at 16:55, Bill Sconce wrote:
> 
> > Hm.  Tougher than it looks.
> >
> > The Library Reference and MartelliBible (the Nutshell) both say you'll
> > get 'nt'.  The Nutshell says specifically, "'nt' (all kinds of 32-bit
> > Windows platforms)" (p 172).
> 
> interestingly on Win2K3 I don't get a result for os.uname().  Other os. 
> methods work OK.
> 
> os.name gives 'nt'
> sys.platform gives 'win32'
> platform.platform() gives 'Microsoft-Windows-32bit-WindowsPE'
> 
> -----
> 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



More information about the Python-talk mailing list