]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Back to python3 executable, the PATH will determine which one to use at execution
authorGilles DAVID <gilles-g.david@edf.fr>
Mon, 31 May 2021 15:27:42 +0000 (17:27 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Mon, 31 May 2021 15:27:42 +0000 (17:27 +0200)
bin/salomeContext.py

index 3ff66d837a672b0287b66faf0fa6ed1bfbee25db..403cb00de92b22d76775372401c0ad93d86e5a04 100755 (executable)
@@ -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
   #