sys.platform documentation?

Tim Golden tim.golden at viacom-outdoor.co.uk
Fri Aug 11 04:23:01 EDT 2006


[Michiel Sikma]
| So if you run this script:
| --
| import platform
| platform.platform()
| platform.uname()
| --
| You will get all the information that is necessary. And then 
| you just  
| need to provide it with a human-determined name of the operating  
| system you're using.

If you're interested:

>>> platform.platform()
'Windows-XP-5.1.2600-SP2'
>>> platform.uname()
('Windows', 'VOGBP350', 'XP', '5.1.2600', '', '')
>>>

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-list mailing list