Skip to content
Snippets Groups Projects
Commit 737dc84e authored by Guillaume Valadon's avatar Guillaume Valadon
Browse files

Merge pull request #106 from p-l-/fix-101

python --version may output to stderr (fixes #101)
parents 66064db6 37cc56cf
No related branches found
No related tags found
No related merge requests found
#! /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
......
#! /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
......
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