I did import the rc file in the Main.py and use cxfreeze --include-module option to include the rc module<div>I made a gui bundle,so there wasn't any dos output.<br><div><br><div class="gmail_quote">On Thu, Sep 16, 2010 at 8:32 PM, Hans-Peter Jansen <span dir="ltr"><<a href="mailto:hpj@urpla.net">hpj@urpla.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Thursday 16 September 2010, 13:30:28 Von wrote:<br>
> Hi Hans,strange thing happens<br>
> I put my icon.jpg file into the qrc file and compile it to py file.when I<br>
> run my Main.py directly I can see the icon show up correctly,but while I<br>
> use cxfreeze to package it,then it can't find the resource at all.Here is<br>
> my simple code:<br>
> pixmap = QtGui.QPixmap(":/icon.jpg") #:/icon.jpg is my resource name.<br>
> assert(pixmap.isNull() == False)  --> #this line raise AssertionError<br>
<br>
</div>You need to include the module, you created beforehand.<br>
<br>
It might be, that cx_freeze misses other modules/libs as well. Did something<br>
appear on the DOS shell, if running from there?<br>
<br>
Pete<br>
</blockquote></div><br></div></div>