mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-21 23:43:18 +01:00
Revert "Suppress error P is not recognized as an internal or external command,operable program or batch file."
This reverts commit 6272a0212c
.
This commit is contained in:
parent
ac36a8a20e
commit
e6074ed52d
@ -115,8 +115,8 @@ def connect(ssh_cmd, rhostport, python, stderr, add_cmd_delimiter, remote_shell,
|
|||||||
pyscript = r"""
|
pyscript = r"""
|
||||||
import sys, os;
|
import sys, os;
|
||||||
verbosity=%d;
|
verbosity=%d;
|
||||||
stdin = os.fdopen(0, "rb");
|
stdin = os.fdopen(0, 'rb');
|
||||||
exec(compile(stdin.read(%d), "assembler.py", "exec"));
|
exec(compile(stdin.read(%d), 'assembler.py', 'exec'));
|
||||||
sys.exit(98);
|
sys.exit(98);
|
||||||
""" % (helpers.verbose or 0, len(content))
|
""" % (helpers.verbose or 0, len(content))
|
||||||
pyscript = re.sub(r'\s+', ' ', pyscript.strip())
|
pyscript = re.sub(r'\s+', ' ', pyscript.strip())
|
||||||
@ -142,7 +142,7 @@ def connect(ssh_cmd, rhostport, python, stderr, add_cmd_delimiter, remote_shell,
|
|||||||
pycmd = '%s -c %s' % (python or 'python', pyscript)
|
pycmd = '%s -c %s' % (python or 'python', pyscript)
|
||||||
else: # posix shell expected
|
else: # posix shell expected
|
||||||
if python:
|
if python:
|
||||||
pycmd = "%s -c \"%s\"" % (python, pyscript)
|
pycmd = '"%s" -c "%s"' % (python, pyscript)
|
||||||
else:
|
else:
|
||||||
# By default, we run the following code in a shell.
|
# By default, we run the following code in a shell.
|
||||||
# However, with restricted shells and other unusual
|
# However, with restricted shells and other unusual
|
||||||
|
Loading…
Reference in New Issue
Block a user