icon resource in setup script

Joe Wong joewong at mango.cc
Fri Jul 2 12:01:16 CEST 2004


Hi,

 I have encountered an error whenever I put the "icon_resources" line in my setup.py file:

from distutils.core import setup

import py2exe


setup(
 windows=[
        {'script':"test.py"},
        {'icon_resources': [(1, 'smiles.ico')]},
    ],
)

The error I get:

running py2exe
error: This target class requires an attribute 'script'

How can I make the icon thing work in my script? I tried using --icon but it said --icon is not recognized.

Regards,

- Wong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040702/57a7fcde/attachment.html>


More information about the Python-list mailing list