summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/link_pyqt.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/link_pyqt.py b/scripts/link_pyqt.py
index 6df48198c..0341de096 100644
--- a/scripts/link_pyqt.py
+++ b/scripts/link_pyqt.py
@@ -199,7 +199,9 @@ def get_tox_syspython(tox_path):
with open(path, encoding='ascii') as f:
line = f.readline()
_md5, sys_python = line.rstrip().split(' ', 1)
- return sys_python
+ # Follow symlinks to get the system-wide interpreter if we have a tox isolated
+ # build.
+ return os.path.realpath(sys_python)
def main():