From 614794a62a77552483a0b0471f06c9d04e547a75 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 26 Jul 2016 13:59:25 +0200 Subject: [PATCH] link_pyqt: Use PyQt5.QtCore to find PyQt5 path For some reason on OS X, PyQt5.__file__ does not exist as it's a namespace package. --- scripts/link_pyqt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/link_pyqt.py b/scripts/link_pyqt.py index b0f53f56c..fffe27fb3 100644 --- a/scripts/link_pyqt.py +++ b/scripts/link_pyqt.py @@ -136,7 +136,7 @@ def link_pyqt(executable, venv_path): """ sip_file = get_lib_path(executable, 'sip') sipconfig_file = get_lib_path(executable, 'sipconfig', required=False) - pyqt_dir = os.path.dirname(get_lib_path(executable, 'PyQt5')) + pyqt_dir = os.path.dirname(get_lib_path(executable, 'PyQt5.QtCore')) for path in [sip_file, sipconfig_file, pyqt_dir]: if path is None: