Error copying imageformats directory into PyQt4 app
In master, when I try to freeze the sample PyQt4 app, I get an error:
error: /usr/lib/python2.7/dist-packages/PyQt4/plugins/imageformats: No such file or directory
The build succeeds anyway (as it doesn't require those plugins), but it's the last message from the build, so users are going to think there's a problem, even if there isn't.
It's reproducible with Python 2.7 and 3.2 (I haven't tested other versions). The root cause is that the hook that looks for the Qt plugins directory adjacent to the PyQt libraries, whereas on my system it's at:
From comments on pull request 11, it looks like QtCore.QCoreApplication.libraryPaths can be used to find the correct directory.