What do I need to look at to see whether I'm on Windows or Unix, etc?
>>> import os >>> os.name 'posix' >>> import platform >>> platform.system() 'Linux' >>> platform.release() '2.6.22-15-generic'
The output of platform.system() is as follows:
platform.system()
Linux
Darwin
Windows
See: platform — Access to underlying platform’s identifying data
platform
2.1m questions
2.1m answers
60 comments
57.0k users