python --version may output to stderr (fixes #101)

This commit is contained in:
Pierre LALET 2016-03-26 12:39:20 +01:00
parent 66064db6bd
commit 37cc56cfa5
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#! /bin/sh
DIR=$(dirname $0)
if python --version | grep -q '^Python 2'; then
if python --version 2>&1 | grep -q '^Python 2'; then
PYTHON=python
else
PYTHON=python2

View File

@ -1,6 +1,6 @@
#! /bin/bash
DIR=$(dirname $0)/..
if python --version | grep -q '^Python 2'; then
if python --version 2>&1 | grep -q '^Python 2'; then
PYTHON=python
else
PYTHON=python2