Is there any way to check what platform im running with python 2.7? For example using platform module:
import platform
print platform.system()
print platform.release()
I get:
Linux
2.6.32-312-ec2
But with the linux command I can get exactly what platform im running:
import command
print commands.getoutput('cat /etc/issue')
.
Debian GNU/Linux 6.0 \n \l
Is there any other way in python to know im running Debian GNU Linux 6.0?