| 1 | #! /bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | DIR=$(dirnamescip-shell system . . dirname. "$0") |
| 3 | if [scip-shell system . . `[`. -z "$PYTHON" ] |
| 4 | then |
| 5 | PYTHON=${PYTHON:-python3} |
| 6 | fi |
| 7 | $PYTHON --version > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 8 | if [scip-shell system . . `[`. ! $? -eq 0 ] |
| 9 | then |
| 10 | echoscip-shell system . . echo. "WARNING: '$PYTHON' not found, using 'python' instead." |
| 11 | PYTHON=python |
| 12 | fi |
| 13 | PYTHONPATH=$DIR exec "$PYTHON" -m scapy $@ |