]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
If THERE IS an error when executing script, we should explicitly exit :)
authorvsr <vsr@opencascade.com>
Wed, 6 Nov 2013 10:01:04 +0000 (10:01 +0000)
committervsr <vsr@opencascade.com>
Wed, 6 Nov 2013 10:01:04 +0000 (10:01 +0000)
bin/runSalome.py

index 311d945ee8969dd5efd6f9bf93d63e07ea6e1422..fef35cf21c81d3db71d4ae6159b63aecb606404b 100755 (executable)
@@ -783,7 +783,7 @@ def useSalome(args, modules_list, modules_root_dir):
         if command:
             proc = subprocess.Popen(command, shell=True)
             res = proc.wait()
-            if not res: sys.exit(1) # if there's an error when executing script, we should explicitly exit
+            if res: sys.exit(1) # if there's an error when executing script, we should explicitly exit
 
     return clt