From 570b7a6c8c3eae65a85fd8c0e14e05edc54611e2 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 3 Aug 2018 15:53:54 +0300 Subject: [PATCH] Restore work of salome_init(/path/to/study) --- src/KERNEL_PY/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/KERNEL_PY/__init__.py b/src/KERNEL_PY/__init__.py index 9c78533a9..228bbf61d 100755 --- a/src/KERNEL_PY/__init__.py +++ b/src/KERNEL_PY/__init__.py @@ -165,7 +165,7 @@ orb, lcc, naming_service, cm,sg=None,None,None,None,None myStudy, myStudyName=None,None salome_initial=1 -def salome_init(embedded=0): +def salome_init(path=None, embedded=0): """ Performs only once SALOME general purpose initialisation for scripts. Provides: @@ -187,7 +187,7 @@ def salome_init(embedded=0): salome_initial=0 sg = salome_iapp_init(embedded) orb, lcc, naming_service, cm = salome_kernel_init() - myStudy, myStudyName = salome_study_init() + myStudy, myStudyName = salome_study_init(path) pass pass except RuntimeError as inst: -- 2.39.2