Incorporate an icon to python .exe using py2exe
Question: I have this **setup.py** script for incorporating icon for my .exe file, but
the icon isnt appearing after the setup. the icon is 361 KB in size.

    
    
    from distutils.core import setup
    import py2exe
    
    setup(
        console = [
            {
                "script": "wykoRas_parser.py",                    ### Main Python script    
                "icon_resources": [(0, "bw-gears.ico")]     ### Icon to embed into the PE file.
            }
        ],
    ) 
    

Am i missing something from the setup?


Answer: 
    from distutils.core import setup
    
    setup(
        options = {'py2exe': {'bundle_files': 1}},
        zipfile = None,
        windows = [{
                "script":"myprogram.pyw",
                "icon_resources": [(1, "myicon.ico")],
                "dest_base":"myprogram"
                }],
    )
    

Could you try this one please, I had some problem before these codes solved.

