« Return to Thread: Py2App and PyQT

Re: Py2App and PyQT

by kelsolaar_fool :: Rate this Message:

Reply to Author | View in Thread

Ok the QtCore.so problem got solved by adding this line into the __boot__.py :
 
sys.path = [os.path.join(os.environ['RESOURCEPATH'], 'lib', 'python2.5', 'lib-dynload')] + sys.path
 
Now I'm facing another really annoying problem : I need at some point to load jpeg images into my program and Qt jpeg support is done from a plugin library : libqjpeg.dylib under MacOsX and qjpeg4.dll on Windows.
On Windows in order to make my packaged program use it (compiling with py2exe) I include a qt.conf file at the root of my software with this as content :
 
[Paths]
Prefix = ./PyQt4
Binaries = .
 
and the dll is here : PyQt4\plugins\imageformats\qjpeg4.dll
 
This is working fine, I tried the same or a lot of different locations and combinations on MacOsX and everything failed, resulting in blank thumbnails in my program. That is really annoying and can really compromise the release of it on Mac. Hope someone as an idea ?
 
Thanx,
 
Thomas
 

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@...
http://mail.python.org/mailman/listinfo/pythonmac-sig

 « Return to Thread: Py2App and PyQT