sshuttle/run

16 lines
351 B
Plaintext
Raw Normal View History

#!/usr/bin/env sh
2017-10-21 03:03:35 +02:00
set -e
2021-09-22 14:33:37 +02:00
export PYTHONPATH="$(dirname "$0"):$PYTHONPATH"
export PATH="$(dirname "$0")/bin:$PATH"
python_best_version() {
2017-10-21 02:57:05 +02:00
if [ -x "$(command -v python3)" ] &&
python3 -c "import sys; sys.exit(not sys.version_info > (3, 5))"; then
exec python3 "$@"
else
exec python "$@"
fi
}
python_best_version -m "sshuttle" "$@"