Permalink
Browse files

python-2.4-compatible version of python version detection

  • Loading branch information...
1 parent 6b2231a commit 3885acaf7a1eb9509c0cc3b12a9c54a259c973f5 Dan Crosta committed Feb 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 SConstruct
View
@@ -827,7 +827,7 @@ def smoke_python_name():
for binary in binaries:
try:
# py-2.4 compatible replacement for shell backticks
- output = subprocess.Popen([binary, '--version'], stdout=subprocess.PIPE).communicate()[0]
+ output = subprocess.Popen([binary, '-V'], stdout=subprocess.PIPE).communicate()[0]
match = version.search(output)
if match and float(match.group(1)) >= 2.5:
return binary

0 comments on commit 3885aca

Please sign in to comment.