Skip to content
Snippets Groups Projects
Commit 37cc56cf authored by Pierre LALET's avatar Pierre LALET
Browse files

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

parent 66064db6
No related branches found
No related tags found
No related merge requests found
#! /bin/sh #! /bin/sh
DIR=$(dirname $0) DIR=$(dirname $0)
if python --version | grep -q '^Python 2'; then if python --version 2>&1 | grep -q '^Python 2'; then
PYTHON=python PYTHON=python
else else
PYTHON=python2 PYTHON=python2
......
#! /bin/bash #! /bin/bash
DIR=$(dirname $0)/.. DIR=$(dirname $0)/..
if python --version | grep -q '^Python 2'; then if python --version 2>&1 | grep -q '^Python 2'; then
PYTHON=python PYTHON=python
else else
PYTHON=python2 PYTHON=python2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment