- import KernelBasis
- if KernelBasis.getSSLMode():
- import salome
- import DEVIATION
- from SALOME_ContainerPy import SALOME_ContainerPy_SSL_i
- poa = salome.orb.resolve_initial_references("RootPOA")
- poaManager = poa._get_the_POAManager()
- poaManager.activate()
- cpy_i = SALOME_ContainerPy_SSL_i(salome.orb, poa, "FactoryServer")
- cpy_ref = cpy_i._this()
- solver_engine = DEVIATION.DEVIATION(salome.orb,poa,cpy_ref,"FactoryServer", "GENERICSOLVER_inst_2" , SOLVER_ENGINE_NAME)
- else:
- solver_engine = salome.lcc.FindOrLoadComponent("FactoryServer", SOLVER_ENGINE_NAME)
- #