mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-21 23:43:18 +01:00
12 lines
336 B
Bash
Executable File
12 lines
336 B
Bash
Executable File
#!/bin/sh
|
|
source_dir="$(dirname $0)"
|
|
(cd "$source_dir" && "$source_dir/setup.py" --version > /dev/null)
|
|
export PYTHONPATH="$source_dir:$PYTHONPATH"
|
|
if python3.5 -V >/dev/null 2>&1; then
|
|
exec python3.5 -m "sshuttle" "$@"
|
|
elif python2.7 -V >/dev/null 2>&1; then
|
|
exec python2.7 -m "sshuttle" "$@"
|
|
else
|
|
exec python -m "sshuttle" "$@"
|
|
fi
|