Reputation: 21
How can I add icon to exe created by cx_Freeze?
Here is the setup.py:
import cx_Freeze
exe = [cx_Freeze.Executable("file.py")]
cx_Freeze.setup( name = "downloads", version = "1.0", options = {"build_exe": {"packages": ["time","clipboard","base64","random","smtplib","binascii",], "include_files": []}}, executables = exe )
Upvotes: 2
Views: 3845
Reputation: 7096
This is part of the cx_Freeze.Executable object. See the documentation for more information. Effectively:
cx_Freeze.Executable("file.py", icon = "my_icon.ico")
Upvotes: 4