Salome HOME
building the version 1.4.0 of the module: update in the main trunk just
[modules/med.git] / src / MED / MED_test1.py
index d55dae38e31683151abfdb82f06e4de99e297db2..c2c342d494b0d06ceb97d3f6756e1a446587bdcd 100755 (executable)
 
 import salome
 
-med=salome.lcc.FindOrLoadComponent("FactoryServer", "Med")
+med=salome.lcc.FindOrLoadComponent("FactoryServer", "MED")
 
 import os
-filePath=os.getenv("SALOME_BUILD")
-filePath=filePath+"/../SALOME_ROOT/data/"
+#
+#befor running this script, please be sure about the path the file fileName
+#
+filePath=os.environ["MED_ROOT_DIR"]
+filePath=filePath+"/share/salome/resources/"
 fileName="pointe.med"
 fileTout=filePath+fileName
 
 print fileTout
 
 med.readStructFile(fileTout,salome.myStudyName)
-