Salome HOME
Merging with the MAN_SALOME2 branch
[modules/med.git] / src / MedCorba_Swig / medcorba_test.py
index 46a45ea964862f7be17161310afe6fda86b745e1..8bae396eaf61e03ee16ce23c4393a44b7aba993a 100644 (file)
@@ -32,6 +32,11 @@ from libMedCorba_Swig import *
 
 from random import *
 
+import os
+
+filePath=os.environ["MED_ROOT_DIR"]
+filePath=filePath+"/share/salome/resources/"
+
 #==============================================================================
 
 def AnalyzeField(field):
@@ -105,7 +110,7 @@ print "We are working in the study ",studyCurrent," with the ID ",studyCurrentId
 print ""
 
 #medFile = "carre_en_quad4_seg2.med"
-medFile = "cube_hexa8_quad4.med"
+medFile = filePath + "cube_hexa8_quad4.med"
 
 print "Loading of the Med Component"
 print ""