From: cvw Date: Wed, 31 Jul 2013 12:14:43 +0000 (+0000) Subject: test inexisting config fiele for error X-Git-Tag: begin_agr_portmanager_branch_131004~68 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0dc32a7f4a56850be119031ebd4643d2cbe2e91d;p=modules%2Fkernel.git test inexisting config fiele for error --- 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: