From dcb2c7f8681abd4df69ac71baebf010a655ab092 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sun, 8 May 2016 01:08:36 +0200 Subject: [PATCH] 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. --- scripts/link_pyqt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/link_pyqt.py b/scripts/link_pyqt.py index 92fbb84c9..b0f53f56c 100644 --- a/scripts/link_pyqt.py +++ b/scripts/link_pyqt.py @@ -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