From 49f5a7a769bcb97f2c9d99cce49991871085d635 Mon Sep 17 00:00:00 2001 From: nri Date: Wed, 21 May 2003 10:12:48 +0000 Subject: [PATCH] NRI : Update loading of MED (instead of Med). --- src/VISU_SWIG/batchmode_visu.py | 2 +- src/VISU_SWIG/visu.py | 2 +- src/VISU_SWIG/visu_med.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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/' -- 2.39.2