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 <[email protected]> > 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 <[email protected]> > 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 [email protected] > http://www.riverbankcomputing.com/mailman/listinfo/pyqt >
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
