mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-03-15 00:29:19 +01:00
Correctly obtains the python executable to use
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.
This commit is contained in:
parent
89c5b57019
commit
516ff7bc4a
@ -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(' ')
|
||||
|
Loading…
Reference in New Issue
Block a user