]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
EDF bug 17743, salome.sg regressions in DEV (missing getAllSelected method)
authorPaul RASCLE <paul.rascle@edf.fr>
Wed, 5 Sep 2018 09:51:34 +0000 (11:51 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Wed, 5 Sep 2018 09:51:34 +0000 (11:51 +0200)
bin/runSalome.py
src/KERNEL_PY/__init__.py

index 63eb62f1620fd0a03395f64bb6c93f056644c8f5..3aa96b0927c2cabe72c8100eaa10598b31126a90 100755 (executable)
@@ -700,7 +700,7 @@ def useSalome(args, modules_list, modules_root_dir):
                     toopen = args['study_hdf']
                     if toopen:
                         import salome
-                        salome.salome_init(toopen)
+                        salome.salome_init(path=toopen)
                 if 'pyscript' in args:
                     toimport = args['pyscript']
         from salomeContextUtils import formatScriptsAndArgs
index 228bbf61d3442db9ed85b371080487ff0279139d..cb8a968f0cf0ff4222d312626913daafecc998f5 100755 (executable)
@@ -164,8 +164,8 @@ if not flags:
 orb, lcc, naming_service, cm,sg=None,None,None,None,None
 myStudy, myStudyName=None,None
 
-salome_initial=1
-def salome_init(path=None, embedded=0):
+salome_initial=True
+def salome_init(path=None, embedded=False):
     """
     Performs only once SALOME general purpose initialisation for scripts.
     Provides:
@@ -184,7 +184,7 @@ def salome_init(path=None, embedded=0):
 
     try:
         if salome_initial:
-            salome_initial=0
+            salome_initial=False
             sg = salome_iapp_init(embedded)
             orb, lcc, naming_service, cm = salome_kernel_init()
             myStudy, myStudyName = salome_study_init(path)
@@ -212,7 +212,7 @@ def salome_close():
         myStudy.Clear()
     except:
         pass
-    salome_initial=1
+    salome_initial=True
     salome_iapp_close()
     pass