Salome HOME
Merging with the MAN_SALOME2 branch
[modules/med.git] / src / MedCorba_Swig / batchmode_medcorba_test.py
index 2b287725981e5cb314552f931c455b1e61a134f7..cbd5273e1982ef433ed373a779d36f397cb8aabd 100755 (executable)
@@ -15,6 +15,11 @@ from libMedCorba_Swig import *
 
 from random import *
 
+import os
+
+filePath=os.environ["MED_ROOT_DIR"]
+filePath=filePath+"/share/salome/resources/"
+
 #==============================================================================
 
 def AnalyzeField(field):
@@ -101,7 +106,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 ""