scapy/run_scapy

9 lines
174 B
Bash
Executable File

#! /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__