From: Ovidiu Mircescu Date: Wed, 18 Sep 2019 11:37:27 +0000 (+0200) Subject: Fix salome killall X-Git-Tag: V9_4_0a2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=642416fcbb11b91327d004c20ce795854d6616d3;p=modules%2Fkernel.git Fix salome killall --- diff --git a/bin/salomeContext.py b/bin/salomeContext.py index 37b3c9f31..102364ecf 100755 --- a/bin/salomeContext.py +++ b/bin/salomeContext.py @@ -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