>>> import platform
>>> platform.system()
'Linux'
The output of platform.system()
is as follows:
- Linux:
Linux
- Mac:
Darwin
- Windows:
Windows
See: platform — Access to underlying platform’s identifying data
https://docs.python.org/2/library/platform.html