mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-24 17:04:36 +01:00
16 lines
351 B
Bash
Executable File
16 lines
351 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -e
|
|
export PYTHONPATH="$(dirname "$0"):$PYTHONPATH"
|
|
export PATH="$(dirname "$0")/bin:$PATH"
|
|
|
|
python_best_version() {
|
|
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" "$@"
|