From f09369108bf1917a815895858887a96b552c2831 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Mon, 16 Feb 2015 11:05:46 +0100 Subject: [PATCH] add commands: kill, test add commands: kill, test --- bin/salomeContext.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/salomeContext.py b/bin/salomeContext.py index 30b4c57a7..4e789a4eb 100644 --- a/bin/salomeContext.py +++ b/bin/salomeContext.py @@ -40,7 +40,7 @@ Usage: salome [command] [options] [--config=] Commands: ========= - start Starts a SALOME session (through virtual application) + start Starts a SALOME session (through virtual application) context Initializes SALOME context. shell Initializes SALOME context, and executes scripts passed as command arguments @@ -213,9 +213,9 @@ class SalomeContext: options = args[1:] availableCommands = { - 'start' : '_runAppli', + 'start' : '_runAppli', 'context' : '_setContext', - 'shell' : '_runSession', + 'shell' : '_runSession', 'connect' : '_runConsole', 'kill' : '_kill', 'killall' : '_killAll', @@ -359,9 +359,7 @@ class SalomeContext: return proc.communicate() # - def _runSession(self, args=None): - if args is None: - args = [] + def _runSession(self, args=[]): sys.argv = ['runSession'] + args import runSession params, args = runSession.configureSession(args, exe="salome shell") -- 2.39.2