From 06d1d549e002357ec27489db9818427dc3771262 Mon Sep 17 00:00:00 2001 From: nri Date: Wed, 16 Jul 2003 20:16:45 +0000 Subject: [PATCH] NRI : Correction of MED import !!!. --- src/VISU_SWIG/batchmode_visu.py | 9 --------- src/VISU_SWIG/visu.py | 6 +++++- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/VISU_SWIG/batchmode_visu.py b/src/VISU_SWIG/batchmode_visu.py index cc9f9552..a63e6350 100644 --- a/src/VISU_SWIG/batchmode_visu.py +++ b/src/VISU_SWIG/batchmode_visu.py @@ -7,15 +7,6 @@ # File : batchmode_visu.py # Module : VISU -import os -import re -from time import sleep - -import VISU -import SALOMEDS -import SALOME_MED -from omniORB import CORBA - from batchmode_salome import * import visu diff --git a/src/VISU_SWIG/visu.py b/src/VISU_SWIG/visu.py index 73af65e1..7401f121 100644 --- a/src/VISU_SWIG/visu.py +++ b/src/VISU_SWIG/visu.py @@ -18,6 +18,10 @@ from omniORB import CORBA from string import * from time import sleep +#NRI : interface MED dans le Module Engines !!!! +import MED_idl +import Med_Gen_idl + myORB = None myNamingService = None myLifeCycleCORBA = None @@ -148,7 +152,7 @@ def CreatePrsForMed(theVisu, theFileName, thePrsTypeList, thePictureDir, thePict # try: global myLifeCycleCORBA print "lcc.FindOrLoadComponent...", - aMedComp = myLifeCycleCORBA.FindOrLoadComponent("FactoryServer", "Med") + aMedComp = myLifeCycleCORBA.FindOrLoadComponent("FactoryServer", "MED") if aMedComp is None : print "Error" else : print "OK" -- 2.39.2