summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2015-12-05 14:40:59 +1100
committerBrian May <brian@linuxpenguins.xyz>2015-12-05 14:41:22 +1100
commit65e81d51c6968b46bd035dada54213b654a580b8 (patch)
treeecfbc36f48699ae12b9178d48faa0b9725a3895e
parent43084eb49aab5f7e85b270ca977c2f238efa1e3f (diff)
Try Python3.5 by default.
Python 3.0, 3.1, 3.2, and 3.4 not supported however.
-rwxr-xr-xrun2
-rw-r--r--sshuttle/ssh.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/run b/run
index 9232659..b4fa803 100755
--- a/run
+++ b/run
@@ -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 +