med_comp = salome.lcc.FindOrLoadComponent("FactoryServer", "MED")
-medDir = os.getenv('SALOME_ROOT_DIR') + '/../SALOME_ROOT/data/'
+medDir = os.getenv('DATA_DIR') + '/MedFiles/'
def importMedFrom(medDir,medFile):
medFile = medDir + medFile
importMedFrom(medDir,medFile)
#med_obj = getMedObjectFromStudy()
-myVisu = salome.lcc.FindOrLoadComponent("FactoryServer", "Visu")
+myVisu = salome.lcc.FindOrLoadComponent("FactoryServer", "VISU")
print "Use importMed(medFile) or importMedFrom(medDir,medFile) functions !"
#myField = getFieldObjectFromStudy(2,1)