Ben L
Ben L

Reputation: 783

Changing icon after compiling (Python)

I'm using Python 2.7, and pyinstaller in order to make an exe.

Everything works just fine, but the exe file's icon is the PyInstaller icon.

Is there a way to change the icon?

I found this : http://www.dreamincode.net/forums/topic/192592-making-an-exe-file-with-pyinstaller/

But don't quite understand it.

Upvotes: 1

Views: 6636

Answers (1)

vesche
vesche

Reputation: 1860

Yes, try:

pyinstaller.exe --onefile --windowed --icon=app.ico app.py

Found in this guide. A quick Google search will lead you to tons of .ico files if you need one.

Upvotes: 3

Related Questions