From: vsr Date: Thu, 8 Dec 2005 14:46:20 +0000 (+0000) Subject: PAL10841: To disable exception handler in GUI by command line option X-Git-Tag: T_3_1_0pre~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7133a6b99f286d1afafd5b44d200e22d53a24757;p=modules%2Fkernel.git PAL10841: To disable exception handler in GUI by command line option --- diff --git a/bin/launchConfigureParser.py b/bin/launchConfigureParser.py index 0de312b04..a9d0c273c 100755 --- a/bin/launchConfigureParser.py +++ b/bin/launchConfigureParser.py @@ -26,6 +26,7 @@ standalone_nam = "standalone" containers_nam = "containers" key_nam = "key" interp_nam = "interp" +except_nam = "noexcepthandler" # values in XML configuration file giving specific module parameters ( section) # which are stored in opts with key _ (eg SMESH_plugins) @@ -38,7 +39,7 @@ appname = "SalomeApp" # values of boolean type (must be '0' or '1'). # xml_parser.boolValue() is used for correct setting -boolKeys = ( gui_nam, splash_nam, logger_nam, file_nam, xterm_nam, portkill_nam, killall_nam, interp_nam ) +boolKeys = ( gui_nam, splash_nam, logger_nam, file_nam, xterm_nam, portkill_nam, killall_nam, interp_nam, except_nam ) # values of list type listKeys = ( containers_nam, embedded_nam, key_nam, modules_nam, standalone_nam, plugins_nam ) @@ -275,7 +276,7 @@ except: opterror=0 for opt in cmd_opts: - if not opt in ("h","g","l","f","x","m","e","s","c","p","k","t","i"): + if not opt in ("h","g","l","f","x","m","e","s","c","p","k","t","i","r"): print "command line error: -", opt opterror=1 @@ -306,6 +307,7 @@ if cmd_opts.has_key("h"): --killall or -k : kill all salome sessions --interp=n or -i=n : number of additional xterm to open, with session environment -z : display splash screen + -r : disable centralized exception handling mechanism For each Salome module, the environment variable _ROOT_DIR must be set. The module name () must be uppercase. @@ -320,6 +322,8 @@ for opt in cmd_opts: args[gui_nam] = 1 elif opt == 'z': args[splash_nam] = 1 + elif opt == 'r': + args[except_nam] = 1 elif opt == 'l': args[logger_nam] = 1 elif opt == 'f': diff --git a/bin/runSalome.py b/bin/runSalome.py index 0399d6b21..9d0a66971 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -411,6 +411,8 @@ class SessionServer(Server): self.SCMD2+=['GUI'] if self.args['splash']: self.SCMD2+=['SPLASH'] + if self.args['noexcepthandler']: + self.SCMD2+=['noexcepthandler'] if self.args.has_key('modules'): self.SCMD2+=['--modules ('] for mod in self.args['modules']: