From 0dc32a7f4a56850be119031ebd4643d2cbe2e91d Mon Sep 17 00:00:00 2001 From: cvw Date: Wed, 31 Jul 2013 12:14:43 +0000 Subject: [PATCH] test inexisting config fiele for error --- bin/appliskel/salome | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/appliskel/salome b/bin/appliskel/salome index 7cedb7d40..d31f6c1f1 100755 --- a/bin/appliskel/salome +++ b/bin/appliskel/salome @@ -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: -- 2.39.2