title: How do I check if I'm running on Windows in Python?
body: <p>I found the platform module but it says it returns 'Windows' and it's returning 'Microsoft' on my machine. I notice in another thread here on stackoverflow it returns 'Vista' sometimes.</p>
  <p>So, the question is, how do implemement?</p>
  <pre><code>if is_windows():
    ...
  </code></pre>
  <p>In a forward compatible way? If I have to check for things like 'Vista' then it will break when the next version of windows comes out.</p>
  <hr />
  <p>Note: The answers claiming this is a duplicate question do not actually answer the question <code>is_windows</code>. They answer the question &quot;what platform&quot;. Since many flavors of windows exist none of them comprehensively describe how to get an answer of <code>isWindows</code>.</p>