user8536071
user8536071

Reputation: 21

How to add icon to cx_freeze

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

Answers (1)

Anthony Tuininga
Anthony Tuininga

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

Related Questions