[PyQt] application.py of PyQt5 examples improvement suggestion

iMath 2281570025 at qq.com
Tue Jan 20 05:13:57 GMT 2015


C:\Python34\Lib\site-packages\PyQt5\examples\mainwindows\application\application.py


change code in line 113        
   
root = QFileInfo(__file__).absolutePath()


to
#############################
import os
root = os.getcwd()


#############################




if not,when freezed into executable by cx_Freeze,it will not work for "__file__ is not defined".‍
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150120/27b680c4/attachment.html>


More information about the PyQt mailing list