Using the platform
package one can retrieve a lot of information on the running system.
In order to retrieve a detailed string on the platform one can use:
import platform
platform.platform()
and will get a response like this:
'Linux-3.3.0-8.fc16.x86_64-x86_64-with-fedora-16-Verne'
while other useful methods are:
>>> platform.system()
'Windows'
>>> platform.release()
'XP'
>>> platform.version()
'5.1.2600'