Reputation: 85
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?
Upvotes: 1
Views: 1429
Reputation: 116307
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:
qt.conf
, and change prefix to $yourprogram/PyQt4You might also need to convince py2exe
to also include this folder (verbatim).
Upvotes: 2