]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Movement of examples to CVS EXAMPLES SAMPLES_SRC.
authormzn <mzn@opencascade.com>
Wed, 19 Oct 2005 13:59:16 +0000 (13:59 +0000)
committermzn <mzn@opencascade.com>
Wed, 19 Oct 2005 13:59:16 +0000 (13:59 +0000)
src/SALOME_SWIG/salome_test.py

index a1e63a6ccc34720bce76cc2b0078ebb5fd37e276..c1a6d562b45386015c55d60103593a6d7f0c140c 100755 (executable)
@@ -272,10 +272,10 @@ def addStudy(ior):
     anIOR.SetValue(dataflow.getIOR())
 
 import os
-dir= os.getenv("SUPERV_ROOT_DIR")
+dir= os.getenv("DATA_DIR")
 if dir == None:
-       raise RuntimeError, "SUPERV_ROOT_DIR is not defined"
-xmlfile = dir +"/examples/GraphGeomEssai.xml"
+       raise RuntimeError, "DATA_DIR is not defined"
+xmlfile = dir +"/Graphs/GraphGeomEssai.xml"
 print "Load dataflow from the file : "
 print xmlfile
 print
@@ -432,7 +432,7 @@ import VISU
 import visu_gui
 
 medFileName = "pointe.med"
-medFile = os.getenv('KERNEL_ROOT_DIR') + '/examples/' + medFileName
+medFile = os.getenv('DATA_DIR') + '/MedFiles/' + medFileName
 print "Load ", medFile
 
 studyCurrent = salome.myStudyName