PyQt6 and SIP v6 Snapshots Available
Florian Bruhin
me at the-compiler.org
Thu Sep 24 10:34:48 BST 2020
On Wed, Sep 23, 2020 at 10:07:42PM -0700, Bryce Beagle wrote:
> We used to have a utility function that would wrap around a path and
> convert it to one using sys._MEIPASS, if running from the PyInstaller
> environment; and ensure that the paths could be dynamically retrieved for
> the .spec file. Maybe we'll go back to this system if pyrcc is removed.
FWIW I've used this for years:
https://github.com/qutebrowser/qutebrowser/blob/v1.13.1/qutebrowser/utils/utils.py#L179-L188
But I do think importlib_resources (or the builtin importlib.resources
with Python 3.7+) would be the proper way nowadays:
https://github.com/qutebrowser/qutebrowser/issues/4467
It looks like PyInstaller has built-in hooks for that:
https://github.com/pyinstaller/pyinstaller/blob/develop/PyInstaller/hooks/hook-importlib_resources.py
Florian
--
me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org
https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200924/571f2f3f/attachment.sig>
More information about the PyQt
mailing list