diff options
author | Brian May <brian@linuxpenguins.xyz> | 2015-12-05 14:40:59 +1100 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2015-12-05 14:41:22 +1100 |
commit | 65e81d51c6968b46bd035dada54213b654a580b8 (patch) | |
tree | ecfbc36f48699ae12b9178d48faa0b9725a3895e | |
parent | 43084eb49aab5f7e85b270ca977c2f238efa1e3f (diff) |
Try Python3.5 by default.
Python 3.0, 3.1, 3.2, and 3.4 not supported however.
-rwxr-xr-x | run | 2 | ||||
-rw-r--r-- | sshuttle/ssh.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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" "$@" diff --git a/sshuttle/ssh.py b/sshuttle/ssh.py index a6aa330..29c2c90 100644 --- a/sshuttle/ssh.py +++ b/sshuttle/ssh.py @@ -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 + |