cxfreeze icon error python34
Question: I have got a python script like `gorsel.py`. I wanted to convert it to an exe
by `setup.py` but I get icon error.

my setup codes:

* * *
    
    
    import sys
    from cx_Freeze import setup, Executable
    
    build_exe_options = {"packages": ["os"], "excludes": ["Tkinter"]}
     . base = None
        if sys.platform == "win32":
            base = "Win32GUI"
        setup(  name = "sifreleme",
                version = "0.1",
                description = "My GUI application!",
                options = {"build_exe": build_exe_options},
                executables = [Executable("gorsel.py", base=base)])
        try:
            import tkinter  except ImportError:
            import Tkinter as tkinter`
    

* * *

How can I fix my `setup.py` script? Thank you


Answer: Add this to build_exe_options: `"icon": "path/to/icon.ico"`

