SyntaxFix
Write A Post
Hire A Developer
Questions
import os print os.name
This gives you the essential information you will usually need. To distinguish between, say, different editions of Windows, you will have to use a platform-specific method.