Salome HOME
Merge 'abn/V8_1_fix' branch into V8_1_BR.
[modules/med.git] / src / MEDCalc / tui / medcorba.py
index afd74692e8d583b3c0009c09301cf9f5cb49fc45..9288d85be9f9442cc02f5e8ed88483b5759a67e6 100644 (file)
 #
 # containerType = Name of the container factory
 #
-componentName = "MEDFactory"
-corbaModule   = "MEDCALC"
+factoryComponentName = "MEDFactory"
+medComponentName = "MED"
+#corbaModule   = "MEDCALC"
 containerType = "FactoryServer"
 
 import salome
 if salome.lcc is None:
   salome.salome_init()
   pass
-__import__(corbaModule)
-factory = salome.lcc.FindOrLoadComponent(containerType,componentName)
+
+import MEDCALC   # corbaModule
+med_engine = salome.lcc.FindOrLoadComponent(containerType,medComponentName)
+factory = salome.lcc.FindOrLoadComponent(containerType,factoryComponentName)
 # The factory is not the main CORBA component of the SALOME module MED
 # (i.e. the engine associated to the active study), but the CORBA
 # entry point for MED fields operations (i.e. a CORBA component