Try Python3.5 by default.

Python 3.0, 3.1, 3.2, and 3.4 not supported however.
This commit is contained in:
Brian May 2015-12-05 14:40:59 +11:00
parent 43084eb49a
commit 65e81d51c6
2 changed files with 2 additions and 2 deletions

2
run
View File

@ -1,5 +1,5 @@
#!/bin/sh
if python3 -V 2>/dev/null; then
if python3.5 -V 2>/dev/null; then
exec python3 -m "sshuttle" "$@"
else
exec python -m "sshuttle" "$@"

View File

@ -107,7 +107,7 @@ def connect(ssh_cmd, rhostport, python, stderr, options):
if python:
pycmd = "'%s' -c '%s'" % (python, pyscript)
else:
pycmd = ("P=python2; $P -V 2>/dev/null || P=python; "
pycmd = ("P=python3.5; $P -V 2>/dev/null || P=python; "
"exec \"$P\" -c '%s'") % pyscript
argv = (sshl +
portl +