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
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:
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)
myStudy.Clear()
except:
pass
- salome_initial=1
+ salome_initial=True
salome_iapp_close()
pass