# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#--------------------------------------------------------------------------
def openStudy(theStudyPath):
- if verbose(): print("openStudy (begin)")
global myStudy, myStudyName
myStudy.Open(theStudyPath)
myStudyName = myStudy._get_Name()
- if verbose(): print("openStudy (end):", theStudyPath, myStudy._get_Name())
#--------------------------------------------------------------------------
global myStudy, myStudyName
global orb, lcc, naming_service, cm
- if verbose(): print("theStudyPath:", theStudyPath)
if not myStudy:
import CORBA
orb = CORBA.ORB_init([''])
# get Study reference
- if verbose(): print("looking for study...")
import KernelDS
myStudy = KernelDS.myStudy()
- if verbose(): print("Study found")
pass
import types
global myStudy, myStudyName
global orb, lcc, naming_service, cm
- if verbose(): print("theStudyPath:", theStudyPath)
if not myStudy:
orb, lcc, naming_service, cm, _, _, _ = salome_kernel.salome_kernel_init()
# get Study reference
- if verbose(): print("looking for study...")
obj = naming_service.Resolve('/Study')
myStudy = obj._narrow(SALOMEDS.Study)
- if verbose(): print("Study found")
pass
import types