]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix salome killall
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Wed, 18 Sep 2019 11:37:27 +0000 (13:37 +0200)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Wed, 18 Sep 2019 11:37:27 +0000 (13:37 +0200)
bin/salomeContext.py

index 37b3c9f31c2060a1955341f7f226fb8ae7bdcc9c..102364ecfea08f14ca80a24eb65ce20dacfa1d18 100755 (executable)
@@ -397,6 +397,7 @@ class SalomeContext:
       return 1
 
     import subprocess
+    sys.argv = ['kill']
     import setenv
     setenv.main(True)
     if os.getenv("NSHOST") == "no_host":
@@ -409,6 +410,7 @@ class SalomeContext:
   #
 
   def _killAll(self, unused=None):
+    sys.argv = ['killAll']
     import setenv
     setenv.main(True)
     if os.getenv("NSHOST") == "no_host":
@@ -420,7 +422,7 @@ class SalomeContext:
 
       if ports:
         for port in ports:
-          proc = subprocess.Popen(["killSalomeWithPort.py", port])
+          proc = subprocess.Popen(["killSalomeWithPort.py", str(port)])
           proc.communicate()
     except ImportError:
       # :TODO: should be declared obsolete