Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change icon for a cx_Freeze script

I was just wondering if it's possible to change the program icon for a cx_Freeze script, I've looked around but I couldn't find anything.

like image 431
Joseph Smith Avatar asked May 10 '12 04:05

Joseph Smith


1 Answers

Just add icon="icon.ico" in Executable() like this:

from cx_Freeze import setup, Executable

target = Executable(
    script="your_program.py",
    base="Win32GUI",
    compress=False,
    copyDependentFiles=True,
    appendScriptToExe=True,
    appendScriptToLibrary=False,
    icon="icon.ico"
    )

setup(
    name="name",
    version="1.0",
    description="the description",
    author="the author",
    options={"build_exe": options},
    executables=[target]
    )
like image 138
Texom512 Avatar answered Sep 27 '22 21:09

Texom512