<div><div><br></div><div>C:\Python34\Lib\site-packages\PyQt5\examples\mainwindows\application\application.py</div><div><br></div><div>change code in line 113        </div><div>   </div><div>root = QFileInfo(__file__).absolutePath()</div><div><br></div><div>to</div><div>#############################</div><div>import os</div><div>root = os.getcwd()</div><div><br></div><div>#############################</div><div><br></div><div><br></div><div>if not,when freezed into executable by cx_Freeze,it will not work for "__file__ is not defined".<span id="_editor_bookmark_start_0" style="display: none; line-height: 0px;">‍</span></div></div>