From: Gilles DAVID Date: Mon, 31 May 2021 15:27:42 +0000 (+0200) Subject: Back to python3 executable, the PATH will determine which one to use at execution X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5a5b805de6b8f98a7a0d31bec50d989c4e511e37;p=modules%2Fkernel.git Back to python3 executable, the PATH will determine which one to use at execution --- 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 #