On 13 abr, 09:46, Peter <[email protected]> wrote: > I'm running pyinstaller 1.4 with python 2.5 on Windows XP. I've also > got UPX installed. I can make functioning executables, but now I'm > trying to replace the default icon, but it's not working. Using > ImageMagick, I converted a 32x32 png to an ico file, and then modified > my spec file to include the icon file. Here's my spec file: > > # -*- mode: python -*- > a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'), > os.path.join(HOMEPATH,'support\\useUnicode.py'), 'makeisogui.py'], > pathex=['V:\\pythonstuff']) > a.datas += [('mkisofs.exe', 'v:/pythonstuff/fdu/mkisofs.exe','DATA'), > ('isolinux/initrd.img','v:/pythonstuff/fdu/isolinux/ > initrd.img','DATA'), > ('isolinux/isolinux.bin','v:/pythonstuff/fdu/isolinux/ > isolinux.bin','DATA'), > ('isolinux/isolinux.cfg','v:/pythonstuff/fdu/isolinux/ > isolinux.cfg','DATA'), > ('isolinux/vmlinuz','v:/pythonstuff/fdu/isolinux/vmlinuz','DATA'), > ('isolinux/vesamenu.c32','v:/pythonstuff/fdu/isolinux/ > vesamenu.c32','DATA'), > ('isolinux/vsi_grub.jpg','v:/pythonstuff/fdu/isolinux/ > vsi_grub.jpg','DATA')] > pyz = PYZ(a.pure) > exe = EXE( pyz, > a.scripts, > a.binaries, > a.zipfiles, > a.datas, > name=os.path.join('dist', 'makeisogui.exe'), > debug=False, > strip=False, > upx=True, > console=False, > icon='makeiso5.ico' ) > > The icon file is in the current directory, same as the spec file, when > I run Build.py. The resulting executable works, it just doesn't use > my icon. Windows correctly displays the icon when I see it listed in > the file manager. This seems similar to the bug that existed in 1.3 > and was fixed in 1.4, fwiw. Any ideas? > > Peter
Did you run Configure.py after install pywin32? That worked for me. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
