]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
The script 'validateDataSet.py' has a return code different of zero if the input...
authorYohann Pipeau <yohann.pipeau@edf.fr>
Mon, 11 Apr 2022 16:12:10 +0000 (18:12 +0200)
committerYohann Pipeau <yohann.pipeau@edf.fr>
Sat, 23 Apr 2022 06:36:11 +0000 (08:36 +0200)
Tools/validateDataSet.py

index 763f0fc0cb4723d998971aaa0c838726d7d35d8a..433ad8d23807783aef9a5192ad055bedd4ecef33 100755 (executable)
@@ -33,4 +33,9 @@ import os
 sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'../'))
 
 from InterfaceQT4 import eficas_go
-eficas_go.validateDataSet(code='NonConnu')
+if eficas_go.validateDataSet(code='NonConnu'):
+    print('Fichier valide')
+    sys.exit(0)
+else:
+    print('Fichier invalide')
+    sys.exit(1)