Skip to content

Commit

Permalink
Correctly obtains the python executable to use
Browse files Browse the repository at this point in the history
Previously the sshuttle shell script would pass the python to use as the
first argument of the command. The new run script no longer does this.
Instead we can obtain the python being used via sys.executable.
Fixes #88.
  • Loading branch information
vieira authored and brianmay committed Apr 20, 2016
1 parent 89c5b57 commit 516ff7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sshuttle/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def connect(ssh_cmd, rhostport, python, stderr, options):
if not rhost:
# ignore the --python argument when running locally; we already know
# which python version works.
argv = [sys.argv[1], '-c', pyscript]
argv = [sys.executable, '-c', pyscript]
else:
if ssh_cmd:
sshl = ssh_cmd.split(' ')
Expand Down

0 comments on commit 516ff7b

Please sign in to comment.