sshuttle/run

12 lines
336 B
Plaintext
Raw Normal View History

#!/bin/sh
source_dir="$(dirname $0)"
(cd "$source_dir" && "$source_dir/setup.py" --version > /dev/null)
export PYTHONPATH="$source_dir:$PYTHONPATH"
2016-08-30 10:52:06 +02:00
if python3.5 -V >/dev/null 2>&1; then
2016-01-30 01:27:37 +01:00
exec python3.5 -m "sshuttle" "$@"
2016-08-30 10:52:06 +02:00
elif python2.7 -V >/dev/null 2>&1; then
exec python2.7 -m "sshuttle" "$@"
else
exec python -m "sshuttle" "$@"
fi