Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个应用程序在 QWebview 中显示一些 HTML,它引用本地文件系统上的图像。这可以很好地直接运行python。通过 py2exe 编译时,图像不再加载。谷歌似乎不知道答案,有什么想法吗?
只有png支持是本机的,jpg(和其他)是通过插件提供的。
png
jpg
不记得确切的路径(而且我不知道您的平台),但搜索 PyQt 插件文件夹并:
qt.conf
您可能还需要说服py2exe也包括此文件夹(逐字)。
py2exe