mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-25 09:23:48 +01:00
9f27c1943b
* Drop 2.7 * Add 3.7 and 3.8
16 lines
347 B
Bash
Executable File
16 lines
347 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" "$@"
|