]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix regression introduced with commit 222f5118: Python scripts are not properly proce...
authorvsr <vsr@opencascade.com>
Wed, 11 Mar 2015 08:28:19 +0000 (11:28 +0300)
committervsr <vsr@opencascade.com>
Wed, 11 Mar 2015 08:28:19 +0000 (11:28 +0300)
bin/launchConfigureParser.py

index 9883bd4dc77f1ed0be88d43ddbe916f967f1351e..84e0408596e57b1579e0bc7a062e19f516ab27d4 100755 (executable)
@@ -1071,9 +1071,9 @@ def get_env(theAdditionalOptions=None, appname=salomeappname, cfgname=salomecfgn
             args["study_hdf"] = arg
 
     # Python scripts
+    from salomeContextUtils import getScriptsAndArgs, ScriptAndArgs
+    args[script_nam] = getScriptsAndArgs(cmd_args)
     if args[gui_nam] and args["session_gui"]:
-        from salomeContextUtils import getScriptsAndArgs, ScriptAndArgs
-        args[script_nam] = getScriptsAndArgs(cmd_args)
         new_args = []
         for sa_obj in args[script_nam]: # args[script_nam] is a list of ScriptAndArgs objects
             script = re.sub(r'^python.*\s+', r'', sa_obj.script)