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

Merge pull request #85 from p-l-/fix-python2

Update scripts to call python2 instead of python
parents 602a1b23 6dcd8914
No related branches found
No related tags found
No related merge requests found
#! /bin/sh
DIR=$(dirname $0)
PYTHONPATH=$DIR exec python -m scapy.__init__
if python --version | grep -q '^Python 2'; then
PYTHON=python
else
PYTHON=python2
fi
PYTHONPATH=$DIR exec $PYTHON -m scapy.__init__
#! /bin/bash
DIR=$(dirname $0)/..
if python --version | grep -q '^Python 2'; then
PYTHON=python
else
PYTHON=python2
fi
if [ "$*" == "" ]
then
PYTHONPATH=$DIR exec python ${DIR}/scapy/tools/UTscapy.py -t regression.uts -f html -l -o /tmp/scapy_regression_test_$(date +%Y%m%d-%H%M%S).html
PYTHONPATH=$DIR exec $PYTHON ${DIR}/scapy/tools/UTscapy.py -t regression.uts -f html -l -o /tmp/scapy_regression_test_$(date +%Y%m%d-%H%M%S).html
else
PYTHONPATH=$DIR exec python ${DIR}/scapy/tools/UTscapy.py "$@"
PYTHONPATH=$DIR exec $PYTHON ${DIR}/scapy/tools/UTscapy.py "$@"
fi
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