Checking which operating system is used can also be done with libraries instead of string comparison:
Possible solution
from sys import platform
if platform == "linux" or platform == "linux2":
# linux
elif platform == "darwin":
# OS X
elif platform == "win32":
# Windows...
Problem
Checking which operating system is used can also be done with libraries instead of string comparison:
Possible solution