chutney 429 B

123456789101112
  1. #!/bin/sh
  2. export PYTHONPATH="`dirname $0`/lib:${PYTHONPATH}"
  3. # Use python2, python, python3 in that order
  4. [ -n "$PYTHON" ] || {
  5. command -v python2 >/dev/null 2>&1 && PYTHON=python2 || \
  6. command -v python >/dev/null 2>&1 && PYTHON=python # || \
  7. # Not yet supported
  8. # command -v python3 >/dev/null 2>&1 && PYTHON=python3
  9. }
  10. # Use python2 if the checks that use "command" fail
  11. ${PYTHON:=python2} -m chutney.TorNet "$@"