Set icon for exe file

I created the .exe file from a game I made in Python, but I'm not sure how to make this exe file have an icon because it looks boring and boring. I want to somehow make the icon an image of an asteroid, say, because I made the asteroids of the game. I used cx_freeze to compile it.

+4
source share
1 answer

Add it to the parameters in the file setup.py:

setup(
    ...
    options={
        "build_exe": {
            "icon": "path/to/icon.ico"
        }
    }
)
+4
source

All Articles