Commit d78fc0aa authored by sidnei's avatar sidnei

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

git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@87226 62d5b8a3-27da-0310-9561-8e5933582275
parent 8829b9c2
...@@ -7,6 +7,9 @@ Change History ...@@ -7,6 +7,9 @@ Change History
1.0.4 (unreleased) 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 - 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) the buildout-cache, if the filename contains spaces it would fail (sidnei)
......
...@@ -61,7 +61,7 @@ def _get_version(executable): ...@@ -61,7 +61,7 @@ def _get_version(executable):
try: try:
return _versions[executable] return _versions[executable]
except KeyError: except KeyError:
i, o = os.popen4(executable + ' -V') i, o = os.popen4(_safe_arg(executable) + ' -V')
i.close() i.close()
version = o.read().strip() version = o.read().strip()
o.close() 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