I have an application that displays some HTML in a QWebview, which references images on the local file system. This works fine directly running the python. When compiling via py2exe, the images no longer load. Google doesn't seem to know the answer, any ideas?
Asked
Active
Viewed 1,416 times
1 Answers
2
Only png
support is native, jpg
(and others) is supplied via plugins.
Don't recall the exact paths (and I don't know your platform) but search for the PyQt plugins folder and:
- Copy the plugins folder to: $yourprogram/PyQt4/plugins (along with qt.conf)
- Edit
qt.conf
, and change prefix to $yourprogram/PyQt4
You might also need to convince py2exe
to also include this folder (verbatim).

ChristopheD
- 112,638
- 29
- 165
- 179
-
http://dl.dropbox.com/u/2326797/ImageTester.zip is a test application i made to test this. I think I've followed these steps correctly, but it still doesn't work. – Matt May 28 '10 at 11:42