Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

python-2.4-compatible version of python version detection

  • Loading branch information...
commit 3885acaf7a1eb9509c0cc3b12a9c54a259c973f5 1 parent 6b2231a
Dan Crosta authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  SConstruct
View
2  SConstruct
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.