]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Restore work of salome_init(/path/to/study)
authoreap <eap@opencascade.com>
Fri, 3 Aug 2018 12:53:54 +0000 (15:53 +0300)
committereap <eap@opencascade.com>
Fri, 3 Aug 2018 12:53:54 +0000 (15:53 +0300)
src/KERNEL_PY/__init__.py

index 9c78533a928ebd85c6d974dc7b957636d5e8f2bc..228bbf61d3442db9ed85b371080487ff0279139d 100755 (executable)
@@ -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: