]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
test inexisting config fiele for error
authorcvw <cvw>
Wed, 31 Jul 2013 12:14:43 +0000 (12:14 +0000)
committercvw <cvw>
Wed, 31 Jul 2013 12:14:43 +0000 (12:14 +0000)
bin/appliskel/salome

index 7cedb7d40ae4be78c0363417c224015bcbfb1af0..d31f6c1f1470e86615bb8a2f196fa128f079fe1d 100755 (executable)
@@ -80,7 +80,15 @@ if __name__ == "__main__":
   # Identify application path then locate configuration files
   __initialize()
   configFileNames, args = __getConfigFileNames(args)
-
+  
+  error=False
+  for aFile in configFileNames:
+    if not os.path.isfile(aFile):
+      print "ERROR: inexisting file: "+aFile
+      error=True
+  if error: 
+    sys.exit(1)
+     
   # Create a SalomeRunner which parses configFileNames to initialize environment
   from salomeRunner import SalomeRunner, SalomeRunnerException
   try: