]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Integrate fix from Jean RAHUEL: enable killall module importing with the --terminal...
authorvsr <vsr@opencascade.com>
Tue, 21 Nov 2006 12:08:06 +0000 (12:08 +0000)
committervsr <vsr@opencascade.com>
Tue, 21 Nov 2006 12:08:06 +0000 (12:08 +0000)
bin/runSalome.py

index 7c02ebbf492f615e4f77d76ac2a3c8b70f884e1c..e681c744519b3b1d2636995992b0682356a49633 100755 (executable)
@@ -830,13 +830,14 @@ def useSalome(args, modules_list, modules_root_dir):
         i = 0
         while i < len( toimport ) :
             if toimport[ i ] == 'killall':
-                print "killall : option disabled"
-                #killAllPorts()
+                killAllPorts()
+                import sys
+                sys.exit(0)
             else:
                 print 'importing',toimport[ i ]
                 doimport = 'import ' + toimport[ i ]
                 exec doimport
-                i = i + 1
+            i = i + 1
 
     return clt