[PyQt] Re: py2exe and resource files

piotr maliński riklaunim at gmail.com
Fri Nov 13 22:27:48 GMT 2009


pyrcc4 can compile resource file to a python file, which you import in the
python code of your app - and then py2exe without any changes packs the
compiled *py resource file also :)

2009/11/13 Tiago Maluta <tiago.maluta at gmail.com>

> I just realize that happens with file format because with a simple
> test on .qrc file:
>
> - <file>logo.jpg</file>
> + <file>logo.png</file>
>
> After changed to png everything works, note I with the same setup.py
> described on the previous message.
>
> I didn't try other formats yet.
>
>
> --tm
>
>
>
>
> On Fri, Nov 13, 2009 at 11:02 AM, Tiago Maluta <tiago.maluta at gmail.com>
> wrote:
> > I had an simple PyQt4 program that uses a resource file. After
> > executable generation I can't see the resource file content. I tried
> > many variations (i.e: 'data_contents') but anyone works
> >
> > Basically my script is:
> >
> > from distutils.core import setup
> > import py2exe, sys, os
> >
> > sys.argv.append('py2exe')
> > setup(
> >                options = {'py2exe': {"includes":["sip"],"bundle_files": 1
> }},
> >                windows = [{'script': "window.py"}],
> >                zipfile = None,
> >         )
> >
> > There are some workaround for this?
> >
> > --tm
> >
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091113/50856d11/attachment-0001.html


More information about the PyQt mailing list