[PyQt] New Set of Development Wheels for PyQt5 v5.6
Cosimo Lupo
cosimo.lupo at daltonmaag.com
Tue Apr 19 15:27:55 BST 2016
Could the `PyQt5.__init__.py` module be modified to automatically add the
PyQt5 folder to the os.environ["PATH"], when the current platform is
Windows?
If I patch it like that, I don't have to manually configure my environment
everytime I install the pyqt5 wheel from pip in a new virtual environment.
Thanks.
"""
import os as _os
import platform as _platform
if _platform.system() == "Windows":
# on Windows we need to ensure PyQt5 is in the %PATH% for DLLs to be
loaded
_pyqt5_dir = _os.path.dirname(__file__)
_env_path = _os.environ.get("PATH", "")
if _pyqt5_dir not in [pth.rstrip(_os.sep) for pth in
_env_path.split(_os.pathsep)]:
_os.environ["PATH"] = _os.pathsep.join([_pyqt5_dir, _env_path])
"""
Cosimo Lupo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160419/98746261/attachment-0001.html>
More information about the PyQt
mailing list