I did import the rc file in the Main.py and use cxfreeze --include-module option to include the rc module I made a gui bundle,so there wasn't any dos output.
On Thu, Sep 16, 2010 at 8:32 PM, Hans-Peter Jansen <h...@urpla.net> wrote: > On Thursday 16 September 2010, 13:30:28 Von wrote: > > Hi Hans,strange thing happens > > I put my icon.jpg file into the qrc file and compile it to py file.when I > > run my Main.py directly I can see the icon show up correctly,but while I > > use cxfreeze to package it,then it can't find the resource at all.Here is > > my simple code: > > pixmap = QtGui.QPixmap(":/icon.jpg") #:/icon.jpg is my resource name. > > assert(pixmap.isNull() == False) --> #this line raise AssertionError > > You need to include the module, you created beforehand. > > It might be, that cx_freeze misses other modules/libs as well. Did > something > appear on the DOS shell, if running from there? > > Pete >
_______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt