mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-25 01:13:37 +01:00
17 lines
379 B
Bash
Executable File
17 lines
379 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -e
|
|
export PYTHONPATH="$(dirname $0):$PYTHONPATH"
|
|
|
|
python_best_version() {
|
|
if [ -x "$(command -v python3)" ] &&
|
|
python3 -c "import sys; sys.exit(not sys.version_info > (3, 5))"; then
|
|
exec python3 "$@"
|
|
elif [ -x "$(command -v python2.7)" ]; then
|
|
exec python2.7 "$@"
|
|
else
|
|
exec python "$@"
|
|
fi
|
|
}
|
|
|
|
python_best_version -m "sshuttle" "$@"
|