Commit da27efbb authored by murban's avatar murban
Browse files

Set python hardcoded on version 2

parent 510d999e
......@@ -155,7 +155,7 @@ class LocalConnectionImpl(object):
_local_connection_feeder = None
def __init__(self, command, **kwargs):
if command[0] == "python" and not sys.platform.startswith("java"):
if command[0] == "python2" and not sys.platform.startswith("java"):
command[0] = sys.executable
logger.info("local connection: %s" % " ".join(command))
self.__proc = subprocess.Popen(command, stdin=subprocess.PIPE,
......@@ -451,7 +451,7 @@ class Connection(object):
self.__userid = userid
self.__workspaceid = workspaceid
self.__host = host
self.__python = kwargs.get('python', 'python') or "python"
self.__python = kwargs.get('python', 'python2') or "python2"
self.__username = kwargs.get('username', None)
self.__server = None
self.__tempdir = kwargs.get("tempdir", "")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment