Re: py2exe Icon Resources
- From: Thomas Heller <theller@xxxxxxxxxx>
- Date: Wed, 30 Apr 2008 09:14:12 +0200
flarefight@xxxxxxxxxxxxxx schrieb:
I have created an app using python and then converting it to an exe
using py2exe, and have the following code:
"icon_resources": [(1, "appFavicon.ico"), (2, "dataFavicon.ico")]
in my py2exe setup file, the appFavicon works fine and it sets that as
the app icon thats fine, but the program creates data files (like
documents) and i wanted them to have a different icon...
I package my apps using Inno Setup 5, and it registers the file type
fine so that it loads on double click, what i cant do is set the icon
for the file.
as you can see i have packaged two different icons with py2exe but
when i set DefaultIcon in the registry to "C:\pathtoapp\myapp.exe,2"
it doesnt work, nor does it work with a 1 or a %1 or indeed with
passing a path to the icon itself, nothing seems to work!!
how do you access the other icons generated from py2exe, or how do you
set the registry up so that i looks for the icon correctly,
There was a problem in the icon resources code in py2exe which was
recently fixed in CVS but there is not yet a binary release of this code.
Maybe it solves your problem...
Thomas
.
- References:
- py2exe Icon Resources
- From: flarefight
- py2exe Icon Resources
- Prev by Date: Re: sed to python: replace Q
- Next by Date: Re: computing with characters
- Previous by thread: py2exe Icon Resources
- Next by thread: Re: string translate, replace, find and the forward slash
- Index(es):
Relevant Pages
|