Skip to content

Commit 65e81d5

Browse files
committed
Try Python3.5 by default.
Python 3.0, 3.1, 3.2, and 3.4 not supported however.
1 parent 43084eb commit 65e81d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
if python3 -V 2>/dev/null; then
2+
if python3.5 -V 2>/dev/null; then
33
exec python3 -m "sshuttle" "$@"
44
else
55
exec python -m "sshuttle" "$@"

sshuttle/ssh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def connect(ssh_cmd, rhostport, python, stderr, options):
107107
if python:
108108
pycmd = "'%s' -c '%s'" % (python, pyscript)
109109
else:
110-
pycmd = ("P=python2; $P -V 2>/dev/null || P=python; "
110+
pycmd = ("P=python3.5; $P -V 2>/dev/null || P=python; "
111111
"exec \"$P\" -c '%s'") % pyscript
112112
argv = (sshl +
113113
portl +

0 commit comments

Comments
 (0)