title: Changing .exe icon and get error message: python.exe has stopped working
body: <p>Python.exe has stopped working during the compilation with py2exe. I used the following command to change the icon for my .exe python script, but python.exe hang and stopped working.</p>
  
  <pre><code>setup(
        console = [
        {
          "script": "CreateFile.py",                 
          "icon_resources": [(1, "Capture.ico")]     
        }
       ]
  )
  </code></pre>
  
  <p>It hangs after this line in cmd prompt:
  <strong>* copy extensions <em></strong>
  <strong></em> copy dlls *</strong>
  copying C:\Python27\lib\site-packages\py2exe\run_w.exe -> C:\Users\PycharmProjects\exercise1\dist\CreateFile.exe</p>
  
  <p>I have gone through many forum threads and tried many ways but still couldn't figure out why the hang is happening. Can anyone help? Thanks.</p>