From: nri Date: Wed, 21 May 2003 10:12:48 +0000 (+0000) Subject: NRI : Update loading of MED (instead of Med). X-Git-Tag: Start-v1_1a~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=49f5a7a769bcb97f2c9d99cce49991871085d635;p=modules%2Fvisu.git NRI : Update loading of MED (instead of Med). --- diff --git a/src/VISU_SWIG/batchmode_visu.py b/src/VISU_SWIG/batchmode_visu.py index 06dd539c..ae688cf2 100644 --- a/src/VISU_SWIG/batchmode_visu.py +++ b/src/VISU_SWIG/batchmode_visu.py @@ -50,7 +50,7 @@ def SObjectToObject(theSObject) : print "SObjectToObject - IOR = ''" return anObj; -med_comp = batchmode_salome.lcc.FindOrLoadComponent("FactoryServer", "Med") +med_comp = batchmode_salome.lcc.FindOrLoadComponent("FactoryServer", "MED") #med_obj = getMedObjectFromStudy() diff --git a/src/VISU_SWIG/visu.py b/src/VISU_SWIG/visu.py index fb33546e..335a643a 100644 --- a/src/VISU_SWIG/visu.py +++ b/src/VISU_SWIG/visu.py @@ -43,7 +43,7 @@ medFile = "pointe.med" medFile = os.getenv('SALOME_ROOT_DIR') + '/../SALOME_ROOT/data/' + medFile print medFile studyCurrent = salome.myStudyName -med_comp = salome.lcc.FindOrLoadComponent("FactoryServer", "Med") +med_comp = salome.lcc.FindOrLoadComponent("FactoryServer", "MED") try: if os.access(medFile, os.R_OK) : if os.access(medFile, os.W_OK) : diff --git a/src/VISU_SWIG/visu_med.py b/src/VISU_SWIG/visu_med.py index d3a4813c..cd120a6c 100644 --- a/src/VISU_SWIG/visu_med.py +++ b/src/VISU_SWIG/visu_med.py @@ -31,7 +31,7 @@ def getFieldObjectFromStudy(number,subnumber): print "ERROR: No Field Object stored in this Study" return None -med_comp = salome.lcc.FindOrLoadComponent("FactoryServer", "Med") +med_comp = salome.lcc.FindOrLoadComponent("FactoryServer", "MED") medDir = os.getenv('SALOME_ROOT_DIR') + '/../SALOME_ROOT/data/'