From 5a5b805de6b8f98a7a0d31bec50d989c4e511e37 Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Mon, 31 May 2021 17:27:42 +0200 Subject: [PATCH] Back to python3 executable, the PATH will determine which one to use at execution --- bin/salomeContext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/salomeContext.py b/bin/salomeContext.py index 3ff66d837..403cb00de 100755 --- a/bin/salomeContext.py +++ b/bin/salomeContext.py @@ -136,7 +136,7 @@ class SalomeContext: env_copy = os.environ.copy() selfBytes= pickle.dumps(self, protocol=0) argsBytes= pickle.dumps(args, protocol=0) - proc = subprocess.Popen([sys.executable, os.path.join(absoluteAppliPath,"bin","salome","salomeContext.py"), selfBytes.decode('latin1'), argsBytes.decode('latin1')], shell=False, close_fds=True, env=env_copy) + proc = subprocess.Popen(["python3", os.path.join(absoluteAppliPath,"bin","salome","salomeContext.py"), selfBytes.decode('latin1'), argsBytes.decode('latin1')], shell=False, close_fds=True, env=env_copy) out, err = proc.communicate() return out, err, proc.returncode # -- 2.39.2