0

Hi guys,
I saw quite a few posts regarding this but I was unable to solve this problem that I am facing.

First off, when I do the following in my setup.py,

windows=[
{
'script': 'gulhane.py',
'icon_resources': [(1, "icon.ico")]
}
],

Python crashes and I am unable to run the script using python setup.py py2exe.

Second, I do not use the icon_resources field in windows but I add the file in the form of a data_file,

data_files=[
('gui', [
'gui/icon.ico'
]
),

I am using Inno to compile the .exe created by py2exe. I try to access this file to add as an icon to the shortcut using,

Name: "{group}\My APP"; Filename: "{app}\MyApp.exe"; WorkingDir: "{app}"; IconFilename: "{app}\gui\icon.ico"

making sure that I keep ChangesAssociations=yes

I am unable to view the icon on the shortcut even after trying this. Could you please shed some light on this? Thank you.

- Vish

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by masterofpuppets
0

actually I tried almost the same things you did with no result aswell :( so if anyone knows more about py2exe pls post some info!

P.S sorry that this is not helpful bro...:)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.