From: Cédric Aguerre Date: Mon, 16 Feb 2015 10:05:46 +0000 (+0100) Subject: add commands: kill, test X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f09369108bf1917a815895858887a96b552c2831;p=modules%2Fkernel.git add commands: kill, test add commands: kill, test --- 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")