diff --git a/run_scapy b/run_scapy index 0f4611eee..557f32436 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 3f224ab6b..5f9ea2c14 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