Salome HOME
NRI : Correction of MED import !!!.
authornri <nri@opencascade.com>
Wed, 16 Jul 2003 20:16:45 +0000 (20:16 +0000)
committernri <nri@opencascade.com>
Wed, 16 Jul 2003 20:16:45 +0000 (20:16 +0000)
src/VISU_SWIG/batchmode_visu.py
src/VISU_SWIG/visu.py

index cc9f9552b2056dba87c656bbcb0252d530e84663..a63e63508dd98a9bc2c4e856be05fa3f1db35f4a 100644 (file)
@@ -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
 
index 73af65e1a91fdccd6bdba2829881b223b6b6297b..7401f121f64536e675c79c4b077563ff4750f676 100644 (file)
@@ -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"