0

I am working on windows-7 64 bit machine using python 2.7. Using py2exe to convert mycode.py script into an exe. I am not able to find the reason why icon to an exe is not embedded.

My setup.py is:

from distutils.core import setup
import py2exe
import time
setup(
    windows=[{'script':'MyScript.pyw',
    'icon_resources':[(1,'MyIcon.ico')}],
    options=dict(py2exe=dict(
        packages='keyring.backends',
    )),
)
time.sleep(2)

I also looked into CustomIcons, q&a.

Community
  • 1
  • 1
imp
  • 1,967
  • 2
  • 28
  • 40

1 Answers1

2

Resource Hacker might be helpful.

Ross Tajvar
  • 130
  • 9
  • yes, It worked, but can it be possible through py2exe. py2exe has option to add icon – imp Mar 24 '14 at 19:20