Commit 96569be0 authored by Sidnei da Silva's avatar Sidnei da Silva

- Quote the 'executable' argument when trying to detect the python version using popen4.

parent 6b35b4be
......@@ -7,6 +7,9 @@ Change History
1.0.4 (unreleased)
==================
- Quote the 'executable' argument when trying to detect the python
version using popen4. (sidnei)
- Quote the 'spec' argument, as in the case of installing an egg from
the buildout-cache, if the filename contains spaces it would fail (sidnei)
......
......@@ -61,7 +61,7 @@ def _get_version(executable):
try:
return _versions[executable]
except KeyError:
i, o = os.popen4(executable + ' -V')
i, o = os.popen4(_safe_arg(executable) + ' -V')
i.close()
version = o.read().strip()
o.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment