scripts: Handle isolated tox builds in link_pyqt.py

This commit is contained in:
Florian Bruhin 2021-03-31 15:27:08 +02:00
parent c7657e65cc
commit b21ca69b70
1 changed files with 3 additions and 1 deletions

View File

@ -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():