link_pyqt: fix crash with spaces in pypath

This fixes a bug where link_pyqt crashes when the path to the python
interpreter contains a space.
This commit is contained in:
Daniel Schadt 2016-05-08 01:08:36 +02:00
parent 95fa78fce3
commit dcb2c7f868

View File

@ -191,7 +191,7 @@ def get_tox_syspython(tox_path):
path = os.path.join(tox_path, '.tox-config1')
with open(path, encoding='ascii') as f:
line = f.readline()
_md5, sys_python = line.rstrip().split(' ')
_md5, sys_python = line.rstrip().split(' ', 1)
return sys_python