#! /bin/sh DIR=$(dirname $0) if python --version 2>&1 | grep -q '^Python 2'; then PYTHON=python else PYTHON=python2 fi PYTHONPATH=$DIR exec $PYTHON -m scapy.__init__