From 37cc56cfa5a6f6097040e8296e79d1819d655f57 Mon Sep 17 00:00:00 2001 From: Pierre LALET <pierre.lalet@cea.fr> Date: Sat, 26 Mar 2016 12:39:20 +0100 Subject: [PATCH] python --version may output to stderr (fixes #101) --- run_scapy | 2 +- test/run_tests | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/run_scapy b/run_scapy index 0f4611ee..557f3243 100755 --- a/run_scapy +++ b/run_scapy @@ -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 diff --git a/test/run_tests b/test/run_tests index 3f224ab6..5f9ea2c1 100755 --- a/test/run_tests +++ b/test/run_tests @@ -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 -- GitLab