From 642416fcbb11b91327d004c20ce795854d6616d3 Mon Sep 17 00:00:00 2001 From: Ovidiu Mircescu Date: Wed, 18 Sep 2019 13:37:27 +0200 Subject: [PATCH] Fix salome killall --- bin/salomeContext.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2