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:
parent
95fa78fce3
commit
dcb2c7f868
@ -191,7 +191,7 @@ def get_tox_syspython(tox_path):
|
|||||||
path = os.path.join(tox_path, '.tox-config1')
|
path = os.path.join(tox_path, '.tox-config1')
|
||||||
with open(path, encoding='ascii') as f:
|
with open(path, encoding='ascii') as f:
|
||||||
line = f.readline()
|
line = f.readline()
|
||||||
_md5, sys_python = line.rstrip().split(' ')
|
_md5, sys_python = line.rstrip().split(' ', 1)
|
||||||
return sys_python
|
return sys_python
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user