Commit b079d8a5 authored by Dimitri van Heesch's avatar Dimitri van Heesch
Browse files

Make Python detection in configure work with version older than 2.7

parent 983507e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -569,7 +569,7 @@ if test "$f_python" = NO; then
    for j in $python_dirs; do
      if test -x "$j/$i"; then
        python_found=YES
        if test `$j/$i -c "import sys; print sys.version_info.major"` = 2; then
        if test `$j/$i -c "import sys; print sys.version_info[0]"` = 2; then
          python_prog="$j/$i"
          break 2
        fi