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 :)<br><br><div class="gmail_quote">2009/11/13 Tiago Maluta <span dir="ltr"><<a href="mailto:tiago.maluta@gmail.com">tiago.maluta@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I just realize that happens with file format because with a simple<br>
test on .qrc file:<br>
<br>
- <file>logo.jpg</file><br>
+ <file>logo.png</file><br>
<br>
After changed to png everything works, note I with the same setup.py<br>
described on the previous message.<br>
<br>
I didn't try other formats yet.<br>
<font color="#888888"><br>
<br>
--tm<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
On Fri, Nov 13, 2009 at 11:02 AM, Tiago Maluta <<a href="mailto:tiago.maluta@gmail.com">tiago.maluta@gmail.com</a>> wrote:<br>
> I had an simple PyQt4 program that uses a resource file. After<br>
> executable generation I can't see the resource file content. I tried<br>
> many variations (i.e: 'data_contents') but anyone works<br>
><br>
> Basically my script is:<br>
><br>
> from distutils.core import setup<br>
> import py2exe, sys, os<br>
><br>
> sys.argv.append('py2exe')<br>
> setup(<br>
> options = {'py2exe': {"includes":["sip"],"bundle_files": 1 }},<br>
> windows = [{'script': "window.py"}],<br>
> zipfile = None,<br>
> )<br>
><br>
> There are some workaround for this?<br>
><br>
> --tm<br>
><br>
<br>
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</div></div></blockquote></div><br>