From 4c2bc5942a205a6969030011ad0267115d910fa4 Mon Sep 17 00:00:00 2001 From: prascle Date: Mon, 19 Apr 2004 06:48:36 +0000 Subject: [PATCH] PR: bug 5668 correction --- bin/launchConfigureParser.py | 10 ++++++++-- bin/runSalome.py | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/bin/launchConfigureParser.py b/bin/launchConfigureParser.py index 02d9adf70..e1d63aeb9 100755 --- a/bin/launchConfigureParser.py +++ b/bin/launchConfigureParser.py @@ -114,7 +114,7 @@ if not appname: sys.exit(1); elif not filename or not os.path.exists(filename): filename = os.environ["HOME"]+"/."+appname+"/"+appname+".launch" - print "Launch configuration file is not exist. Create default:",filename + print "Launch configuration file does not exist. Create default:",filename os.system("mkdir -p "+os.environ["HOME"]+"/."+appname) os.system("cp -f "+os.environ["KERNEL_ROOT_DIR"]+"/bin/"+appname+"/"+appname+".launch "+filename) pass @@ -134,8 +134,14 @@ else: args = {} pass +# --- args completion +for aKey in ("containers","embedded","key","modules","standalone"): + if not args.has_key(aKey): + args[aKey]=[] +for aKey in ("gui","logger","xterm","portkill","killall"): + if not args.has_key(aKey): + args[aKey]=0 args["appname"] = appname -args["containers"] = [] ### searching for my port diff --git a/bin/runSalome.py b/bin/runSalome.py index 588913a1c..d39035584 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -94,8 +94,8 @@ for module in list_modules: #os.environ["SALOMEPATH"]=":".join(modules_root_dir.values()) os.environ["SALOMEPATH"]=":".join(modules_root_dir_list) -if "SUPERV" in modules_list and not 'superv' in args['containers']: - args['containers'].append("superv") +if "SUPERV" in modules_list and not 'superv' in args['standalone']: + args['standalone'].append("superv") pass -- 2.39.2