From 2ff48316f6d2bb52d7a25228647787063f3dfdc0 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Tue, 29 Oct 2019 10:21:07 -0700 Subject: [PATCH] now able to get error: 'python: command not found' --- mitogen/parent.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mitogen/parent.py b/mitogen/parent.py index 7af73454..24a823e4 100644 --- a/mitogen/parent.py +++ b/mitogen/parent.py @@ -1471,10 +1471,10 @@ class Connection(object): # quoting the entire command necessary to invoke python supports # complex python_paths - return ["'" + python_path + ' -c ' - + '"\'import codecs,os,sys;_=codecs.decode;' - 'exec(_(_("%s".encode(),"base64"),"zip"))\'"' % (encoded.decode(),), - "'"] + return ["'" + python_path, '-c', + 'import codecs,os,sys;_=codecs.decode;' + 'exec(_(_("%s".encode(),"base64"),"zip"))\'' % (encoded.decode(),) + ] """ return self.get_python_argv() + [