title: Compile a .pyw file so it can be run like .pyc without console
body: <p>I'm trying to compile a pyw file into a pyc without console.  When I try a straight compile with it, the result is a pywc file, but it seems that pythonw.exe doesn't register that extension as one of it's files like python.exe does for a pyc.</p>
  
  <p>The result of course is that it has no double click handler when you try to just execute, or if you change the extension to pyc, you get the console.</p>
  
  <p>Does anybody know a way around this issue?  Something to the affect of a .pyc with no console?</p>
  
  <p>Thanks!</p>
  
  <p>Update:
  Since running this through execfile or by double clicking on the icon in windows soesn't generate a compiled version of this file, I start python in command line, then :</p>
  
  <pre><code>import py_compile
  py_compile.compile("[FileName].pyw")
  </code></pre>
  
  <p>This is where I get the .pywc extension from.
  My Python version is 2.5.4</p>