From a0a196a6e2a6c90a7092fc4e7f3d2631cf6e4bf3 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 20 Sep 2005 15:02:25 +0000 Subject: [PATCH] avoid exception when configuration files do not exist --- bin/launchConfigureParser.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/launchConfigureParser.py b/bin/launchConfigureParser.py index a9e39c1fe..d533d9ebb 100755 --- a/bin/launchConfigureParser.py +++ b/bin/launchConfigureParser.py @@ -171,20 +171,21 @@ for dir in dirs: filename = dir+'/'+appname+'.xml' try: p = xml_parser(filename, _opts) + _opts = p.opts except: print 'Can not read launch configuration file ', filename continue - _opts = p.opts # SalomeApprc file in user's catalogue filename = os.environ['HOME']+'/.'+appname+'rc.'+version() try: p = xml_parser(filename, _opts) + _opts = p.opts except: print 'Can not read launch configuration file ', filename -args = p.opts +args = _opts # --- setting default values of keys if they were NOT set in config files --- for aKey in listKeys: -- 2.39.2