#raise RuntimeError("Undealed situation cont = {} module = {}".format(contName,moduleName))
def salome_init_without_session():
- global lcc,myStudy,orb,modulcat
+ global lcc,myStudy,orb,modulcat,sg
lcc = StandAloneLifecyle()
import KernelDS
myStudy = KernelDS.myStudy()
poa = orb.resolve_initial_references("RootPOA")
poaManager = poa._get_the_POAManager()
poaManager.activate()
+ sg = SalomeOutsideGUI()
def salome_init_with_session(path=None, embedded=False):
"""