summaryrefslogtreecommitdiff
path: root/scripts/link_pyqt.py
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2016-07-26 13:59:25 +0200
committerFlorian Bruhin <git@the-compiler.org>2016-07-26 13:59:25 +0200
commit614794a62a77552483a0b0471f06c9d04e547a75 (patch)
treed40c5d4c15845defc2e075145f97771ca3752975 /scripts/link_pyqt.py
parentb12c984846cc2638d6925b7234df02f97c7944a7 (diff)
downloadqutebrowser-614794a62a77552483a0b0471f06c9d04e547a75.tar.gz
qutebrowser-614794a62a77552483a0b0471f06c9d04e547a75.zip
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.
Diffstat (limited to 'scripts/link_pyqt.py')
-rw-r--r--scripts/link_pyqt.py2
1 files changed, 1 insertions, 1 deletions
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: