Hi,
I recently updated to WinPython 32-bit (python-2.7.10 + PyQt 4.11.4)
and WinPython 64-bit versions (python-2.7.10.amd64 + PyQt 4.11.4).
Since updating, when I create a one-file or one-dir frozen app with
PyInstaller, on running the frozen app, a qt.conf file gets created in the
folder containing the .exe file. The contents of the qt.conf are as follows:
[Paths]
Prefix = C:/Users/Anthony/AppData/Local/Temp/_MEI9762/PyQt4
Binaries = C:/Users/Anthony/AppData/Local/Temp/_MEI9762/PyQt4
Here is my test script:
import sys
from PyQt4 import QtGui, QtCore
app = QtGui.QApplication(sys.argv)
win = QtGui.QPushButton("Hello World!")
win.show()
sys.exit(app.exec_())
With a one-dir option, this is fine, because the .exe is in the frozen app
folder so the user doesn't notice. However, with the one-file option, a new
qt.conf gets created alongside the .exe, which the user will see (and
probably not understand).
For now, I'm using a hack to delete the qt.conf file that gets created via
os.remove('qt.conf'), but is there a way to direct PyInstaller to send the
qt.conf to a temp folder (e.g. sys._MEIPASS) or not produce it at all.
I didn't have this problem until I updated to the latest version of PyQt,
so is this just a problem with recent versions of PyQt or QT causing
PyInstaller to get confused about the qt.conf file?
Laurence.
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.